Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=69e1c316c34cf90fe237c97d715cd14099925b9a

commit 69e1c316c34cf90fe237c97d715cd14099925b9a
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Thu Sep 1 01:08:09 2011 +0200

syncpkgd: sysv -> systemd

diff --git a/syncpkgd/Makefile b/syncpkgd/Makefile
index a086796..219cb77 100644
--- a/syncpkgd/Makefile
+++ b/syncpkgd/Makefile
@@ -6,8 +6,7 @@ install:
install -m644 ctlconfig.py $(DESTDIR)/etc/syncpkgd/ctlconfig.py
mkdir -p  $(DESTDIR)/lib/systemd/system
install -m644 syncpkgcd.service $(DESTDIR)/lib/systemd/system/syncpkgcd.service
-       mkdir -p  $(DESTDIR)/etc/rc.d
-       install rc.syncpkgd $(DESTDIR)/etc/rc.d/rc.syncpkgd
+       install -m644 syncpkgd.service 
$(DESTDIR)/lib/systemd/system/syncpkgd.service
mkdir -p  $(DESTDIR)/usr/bin
install syncpkgcd.py $(DESTDIR)/usr/bin/syncpkgcd
install syncpkgdctl.py $(DESTDIR)/usr/bin/syncpkgdctl
diff --git a/syncpkgd/rc.syncpkgd b/syncpkgd/rc.syncpkgd
deleted file mode 100755
index 69f5a12..0000000
--- a/syncpkgd/rc.syncpkgd
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-# (c) 2007 Miklos Vajna <vmik...@frugalware.org>
-# rc.syncpkgd for Frugalware
-# distributed under GPL License
-
-# chkconfig: 2345 95 05
-# description: Package builder daemon.
-
-source /lib/initscripts/functions
-TEXTDOMAIN=syncpkgd
-TEXTDOMAINDIR=/lib/initscripts/messages
-
-actions=(restart start status stop)
-daemon=$"package builder daemon"
-
-pid="cat /var/run/syncpkgd.pid  2> /dev/null"
-
-rc_start()
-{
-       start_msg
-       if [[ "$(eval $pid)" == "" ]] ; then
-               syncpkgd -c /var/log/syncpkgd/clientlogs -d -l 
/var/log/syncpkgd/daemon.log -p /var/lib/syncpkgd.pid -s 
/var/lib/syncpkgd.status -u syncpkgd
-               ok $?
-       else
-               ok 999
-       fi
-}
-
-rc_stop()
-{
-       stop_msg
-       if [[ "$(eval $pid)" != "" ]] ; then
-               kill $(eval $pid)
-               rm /var/run/syncpkgd.pid
-               ok $?
-       else
-               ok 999
-       fi
-}
-
-rc_exec $1
diff --git a/syncpkgd/syncpkgd.service b/syncpkgd/syncpkgd.service
new file mode 100644
index 0000000..0ba2b85
--- /dev/null
+++ b/syncpkgd/syncpkgd.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Package builder daemon
+
+[Service]
+ExecStart=/usr/bin/syncpkgd -c /var/log/syncpkgd/clientlogs -l 
/var/log/syncpkgd/daemon.log -p /var/lib/syncpkgd.pid -s 
/var/lib/syncpkgd.status -u syncpkgd
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to