diff options
author | Raúl Porcel <armin76@gentoo.org> | 2009-02-19 19:33:21 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2009-02-19 19:33:21 +0000 |
commit | 6fe1f4a460e8f7d4df95e764236ed63a5b302ccb (patch) | |
tree | 27c87b9dfd040a4e5bdfe5adebda4f91442d949b /app-misc/uptimed/files | |
parent | Drop compiz-0.7.8 since it doesnt support kde 4.2 (diff) | |
download | gentoo-2-6fe1f4a460e8f7d4df95e764236ed63a5b302ccb.tar.gz gentoo-2-6fe1f4a460e8f7d4df95e764236ed63a5b302ccb.tar.bz2 gentoo-2-6fe1f4a460e8f7d4df95e764236ed63a5b302ccb.zip |
Various enhancements by Lars (Polynomial-C) <polynomial-C at gmx dot de>, bug #251465
(Portage version: 2.1.6.4/cvs/Linux 2.6.27-gentoo-r8 ia64)
Diffstat (limited to 'app-misc/uptimed/files')
-rw-r--r-- | app-misc/uptimed/files/uptimed.init | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-misc/uptimed/files/uptimed.init b/app-misc/uptimed/files/uptimed.init new file mode 100644 index 000000000000..b4a7966a7814 --- /dev/null +++ b/app-misc/uptimed/files/uptimed.init @@ -0,0 +1,25 @@ +--- /usr/portage/app-misc/uptimed/files/uptimed ++++ /usr/local/portage/app-misc/uptimed/files/uptimed +@@ -5,15 +5,19 @@ + + # Copyright 2002 Sean Russell + ++PIDFILE="/var/run/uptimed/uptimed.pid" ++ + start() { + ebegin "Starting uptimed" +- uptimed -b +- start-stop-daemon --quiet --start --pidfile /var/run/uptimed --exec /usr/sbin/uptimed ++ start-stop-daemon --quiet --start --chuid uptimed \ ++ --exec /usr/sbin/uptimed -- -b ++ start-stop-daemon --quiet --start --chuid uptimed \ ++ --exec /usr/sbin/uptimed -- -p ${PIDFILE} + eend $? + } + + stop() { + ebegin "Stopping uptimed" +- start-stop-daemon --quiet --stop --pidfile /var/run/uptimed ++ start-stop-daemon --quiet --stop --user uptimed --pidfile ${PIDFILE} + eend $? + } |