Browse Source

Add a systemd service definition #3357

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/slim/trunk@229 7c53e7cc-98ea-0310-8f1f-a0b24da60408
iwamatsu 11 years ago
parent
commit
32d9282732
2 changed files with 11 additions and 0 deletions
  1. 2 0
      CMakeLists.txt
  2. 9 0
      slim.service

+ 2 - 0
CMakeLists.txt

@@ -170,5 +170,7 @@ install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin )
 install(FILES slim.1 DESTINATION ${MANDIR}/man1/)
 # configure
 install(FILES slim.conf DESTINATION ${SYSCONFDIR})
+# systemd service file
+install(FILES slim.service DESTINATION usr/lib/systemd/system)
 # themes directory
 subdirs(themes)

+ 9 - 0
slim.service

@@ -0,0 +1,9 @@
+[Unit]
+Description=SLiM Simple Login Manager
+After=systemd-user-sessions.service
+
+[Service]
+ExecStart=/usr/bin/slim -nodaemon
+
+[Install]
+Alias=display-manager.service