sensord: move systemd-related files to systemd directory 75/33175/1
authorKibak Yoon <kibak.yoon@samsung.com>
Tue, 6 Jan 2015 11:17:44 +0000 (20:17 +0900)
committerKibak Yoon <kibak.yoon@samsung.com>
Tue, 6 Jan 2015 14:08:57 +0000 (23:08 +0900)
add directory structure and build system file
- it would be better to put them in systemd directory.

Change-Id: I60dc53a09de117e52355a3dcb849b2adf0e5661f
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
CMakeLists.txt
packaging/sensord.service [deleted file]
packaging/sensord.socket [deleted file]
systemd/CMakeLists.txt [new file with mode: 0644]
systemd/sensord.service [new file with mode: 0755]
systemd/sensord.socket [new file with mode: 0644]

index 52281785c83591488b0c7843127c6247b102402b..3aae42224b08694d24510a6712f184bfd0e3abc0 100755 (executable)
@@ -56,6 +56,7 @@ IF("${TEST_SUITE}" STREQUAL "ON")
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.APLv2 DESTINATION share/license RENAME test)
 ENDIF()
 
+add_subdirectory(systemd)
 add_subdirectory(src)
 
 IF("${TEST_SUITE}" STREQUAL "ON")
diff --git a/packaging/sensord.service b/packaging/sensord.service
deleted file mode 100755 (executable)
index d3ab961..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=Sensor Daemon
-
-[Service]
-Type=notify
-ExecStart=/usr/bin/sensord
-Restart=always
-RestartSec=0
-MemoryLimit=10M
-
-[Install]
-WantedBy=multi-user.target
diff --git a/packaging/sensord.socket b/packaging/sensord.socket
deleted file mode 100644 (file)
index 5357ca5..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=Sensor daemon socket
-
-[Socket]
-ListenStream=/tmp/sf_command_socket
-SocketMode=0777
-PassCredentials=yes
-Accept=false
-SmackLabelIPIn=*
-SmackLabelIPOut=@
diff --git a/systemd/CMakeLists.txt b/systemd/CMakeLists.txt
new file mode 100644 (file)
index 0000000..233e8ba
--- /dev/null
@@ -0,0 +1,5 @@
+INSTALL(FILES
+       ${CMAKE_CURRENT_SOURCE_DIR}/sensord.service
+       ${CMAKE_CURRENT_SOURCE_DIR}/sensord.socket
+       DESTINATION lib/systemd/system)
+
diff --git a/systemd/sensord.service b/systemd/sensord.service
new file mode 100755 (executable)
index 0000000..d3ab961
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=Sensor Daemon
+
+[Service]
+Type=notify
+ExecStart=/usr/bin/sensord
+Restart=always
+RestartSec=0
+MemoryLimit=10M
+
+[Install]
+WantedBy=multi-user.target
diff --git a/systemd/sensord.socket b/systemd/sensord.socket
new file mode 100644 (file)
index 0000000..5357ca5
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Sensor daemon socket
+
+[Socket]
+ListenStream=/tmp/sf_command_socket
+SocketMode=0777
+PassCredentials=yes
+Accept=false
+SmackLabelIPIn=*
+SmackLabelIPOut=@