diff options
author | Mike Gilbert <floppym@gentoo.org> | 2012-01-22 20:28:00 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2012-01-22 20:28:00 +0000 |
commit | f21adf740899bd4df491001921a96fdda2e1328e (patch) | |
tree | fbfe9ec9d85d8dad3856b822744be8833e99fb95 /www-misc | |
parent | net-irc/xchat-randex: cp || die (diff) | |
download | sunrise-f21adf740899bd4df491001921a96fdda2e1328e.tar.gz sunrise-f21adf740899bd4df491001921a96fdda2e1328e.tar.bz2 sunrise-f21adf740899bd4df491001921a96fdda2e1328e.zip |
www-misc/profile-sync-daemon: Cleanup init script
(Portage version: 2.2.0_alpha84/svn/Linux x86_64, signed Manifest commit with key EA4843A4)
svn path=/sunrise/; revision=12687
Diffstat (limited to 'www-misc')
-rw-r--r-- | www-misc/profile-sync-daemon/ChangeLog | 3 | ||||
-rw-r--r-- | www-misc/profile-sync-daemon/Manifest | 14 | ||||
-rw-r--r-- | www-misc/profile-sync-daemon/files/daemon | 12 |
3 files changed, 21 insertions, 8 deletions
diff --git a/www-misc/profile-sync-daemon/ChangeLog b/www-misc/profile-sync-daemon/ChangeLog index 4a6872d15..2a4479a16 100644 --- a/www-misc/profile-sync-daemon/ChangeLog +++ b/www-misc/profile-sync-daemon/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 22 Jan 2012; Mike Gilbert <floppym@gentoo.org> files/daemon: + www-misc/profile-sync-daemon: Cleanup init script + *profile-sync-daemon-3.0-r1 (15 Jan 2012) 15 Jan 2012; hasufell <julian.ospald@googlemail.com> diff --git a/www-misc/profile-sync-daemon/Manifest b/www-misc/profile-sync-daemon/Manifest index a5303bea8..6cdf642d5 100644 --- a/www-misc/profile-sync-daemon/Manifest +++ b/www-misc/profile-sync-daemon/Manifest @@ -1,8 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX cronjob 44 RMD160 56fe960fc97cd7af4a02d550c8039535da9fb1c6 SHA1 f7974834da21ece11425b530fc8ffb1179464b7d SHA256 9e970ba5901963a4de2467d0a8d4fab1f69bfead2ba20312bf5d233a6adae5d2 -AUX daemon 1240 RMD160 6b6d12451010b9fec8809fa61911d43ae662e8c2 SHA1 a25783fe8907a2d885e8c49ca695cff897598534 SHA256 ff57f226ab882f52283ca67f43e20ae4ffef37ec81a1206129efebea5f2a59c4 +AUX daemon 1244 RMD160 66f5fee6e57bfb27247922a2731b1aa54246ce8a SHA1 9fbadc9779bfd79d60cbcd88b697bedd5f6fd119 SHA256 850faec40b0e44fef765dd851ebc91e1eba82046a44dbcd61970671518f2a492 AUX psd-manreadme.patch 7305 RMD160 f79f1456bdb93bb527ea6c22cbcc39504784a588 SHA1 82bf4ec47ca62da36504972feb477371d3891bc0 SHA256 39dd07a2dae35adc5954cc0c4f36d6ff32524e35d08baa633a2b3daac9e0697a AUX psd-pid.patch 988 RMD160 0657f6c6a8f2980b32faa2643326487151e3bb42 SHA1 204cc48d5c21af4e3a4c9f9288757d451732f667 SHA256 7cc477a4d40496a45648facfcc67d1afb4a1f1efb997dc7e82b9d34262728bfd DIST profile-sync-daemon-3.0.tar.xz 15572 RMD160 c1cb2b394031b8f1316ae256b8c6c2c58449da26 SHA1 c390183a62f1ba1c9c319870729bec10a6a4e3e7 SHA256 b58588c818dd9ed9a440e536fd8aaa587e1dd9bdfd2619bc85aa9ef6e3e61dfe EBUILD profile-sync-daemon-3.0-r1.ebuild 1140 RMD160 028dbf80b2e3f8ea35040eaf8bb9b406f56dd37f SHA1 5362dc8b958b73bd1f2b7b190e314aac8e9ed75c SHA256 97fabf9c56dd52617f52c143c0fca9c658e812ebd939d929feb851ceaf3a33a6 -MISC ChangeLog 1134 RMD160 3b644e6f7d94765b534938a202afbe99417de22c SHA1 1bb1a5c7eed46b08e66f130b00d310430d911311 SHA256 c60040bb0dd6c6339280f203fda6c3001c675e3283dd2fb293f58d08d33e9a50 +MISC ChangeLog 1250 RMD160 d8b37e0d8603a81ede5e992f3ccb198ee6b9305b SHA1 13968340f9b0f6f8af88443ced24bbe53ad42aa4 SHA256 8fa9759adfb2fc5302478fed156fafd995726b4f4dbf9b377f2dee9f6747dc92 MISC metadata.xml 208 RMD160 c18611400760e42bdd001905be0a63c2e963bcea SHA1 595816105cac477cb85792a182e15888029118a1 SHA256 c4841c87f0c2b9b5e679a27dc72180be8d508fb3f5df0fbab2ec2c805c0a6d82 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iF4EAREIAAYFAk8ccU8ACgkQC77qH+pIQ6Qk2gD/b1nrPIoPrtmrpBuDgJ1nL4uX +1ZmJLj+x85leV143AzkBAMGQWHMAsqT8hLvK7ZMZzG4NoYz+dEiDL5zUYVxYh90S +=OwDq +-----END PGP SIGNATURE----- diff --git a/www-misc/profile-sync-daemon/files/daemon b/www-misc/profile-sync-daemon/files/daemon index 749ba85e7..7f2ee04e9 100644 --- a/www-misc/profile-sync-daemon/files/daemon +++ b/www-misc/profile-sync-daemon/files/daemon @@ -10,40 +10,40 @@ PIDFILE=/var/run/${SVCNAME}.pid start() { ebegin "Starting Profile-Sync-Daemon" - if [[ -z $USERS ]]; then + if [ -z "$USERS" ]; then eerror "Define at least one user in /etc/psd.conf" return 1 fi for i in $USERS; do homedir=$(su -c 'echo $HOME' $i) - if [[ ! -d $homedir ]]; then + if [ ! -d "$homedir" ]; then eerror "Invalid user defined in /etc/psd.conf" return 1 fi done /usr/bin/profile-sync-daemon check - start-stop-daemon --start --pidfile ${PIDFILE} --make-pidfile --background \ + start-stop-daemon --start --pidfile "${PIDFILE}" --make-pidfile --background \ --exec /usr/bin/profile-sync-daemon -- sync eend $? } stop() { ebegin "Stopping Profile-Sync-Daemon" - if [[ ! -f $PIDFILE ]]; then + if [ ! -f "$PIDFILE" ]; then eerror "Profile-Sync-Daemon is not running, nothing to stop!" return 1 else /usr/bin/profile-sync-daemon sync && /usr/bin/profile-sync-daemon unsync - rm -f ${PIDFILE} + rm -f "${PIDFILE}" fi eend $? } sync() { ebegin "Syncing browser profiles in tmpfs to physical disc" - if [[ ! -f $PIDFILE ]]; then + if [ ! -f "$PIDFILE" ]; then eerror "Profile-Sync-Daemon is not running... cannot sync!" return 1 else |