diff options
author | 2007-02-18 14:33:44 +0000 | |
---|---|---|
committer | 2007-02-18 14:33:44 +0000 | |
commit | 575c2d46acfbb4790c791e3c6952b813cc58cf6b (patch) | |
tree | 3b23fe719ca8da885fc21704a17a073a2cd7ab10 | |
parent | Fix unzip. (diff) | |
download | chtekk-575c2d46acfbb4790c791e3c6952b813cc58cf6b.tar.gz chtekk-575c2d46acfbb4790c791e3c6952b813cc58cf6b.tar.bz2 chtekk-575c2d46acfbb4790c791e3c6952b813cc58cf6b.zip |
Fix init script.
svn path=/; revision=19
-rw-r--r-- | apps/sys-apps/areca-http/Manifest | 8 | ||||
-rw-r--r-- | apps/sys-apps/areca-http/files/areca-http-initd | 7 |
2 files changed, 11 insertions, 4 deletions
diff --git a/apps/sys-apps/areca-http/Manifest b/apps/sys-apps/areca-http/Manifest index 441cc74..0c088fe 100644 --- a/apps/sys-apps/areca-http/Manifest +++ b/apps/sys-apps/areca-http/Manifest @@ -1,7 +1,7 @@ -AUX areca-http-initd 472 RMD160 e94fe051edd03b88dce0b4c35af2fc3eefdd64a9 SHA1 a76da19a2982d087e63430547399cf5e65ddccda SHA256 2e08b4628c7f4347f36b87c46a734a1137348ba1c0475265c6e37462e1eee251 -MD5 b3b2b8ebad2077ae54125e6040ea80ab files/areca-http-initd 472 -RMD160 e94fe051edd03b88dce0b4c35af2fc3eefdd64a9 files/areca-http-initd 472 -SHA256 2e08b4628c7f4347f36b87c46a734a1137348ba1c0475265c6e37462e1eee251 files/areca-http-initd 472 +AUX areca-http-initd 608 RMD160 0e79558cd47547a13c31c943b852c7e2aed525d2 SHA1 bfcef6a41da217b9e90bf66c5cdb70e3e3f65d71 SHA256 94665f833f86042cb7a7cace53a7b4029b89a3161f7a0d7b420b1b948fdc0436 +MD5 98beabaab2e8f4cb296e085a67781be7 files/areca-http-initd 608 +RMD160 0e79558cd47547a13c31c943b852c7e2aed525d2 files/areca-http-initd 608 +SHA256 94665f833f86042cb7a7cace53a7b4029b89a3161f7a0d7b420b1b948fdc0436 files/areca-http-initd 608 DIST 20060321-1.71.200Beta.zip 1127770 RMD160 f10da1d01ed01adef2d9692b914981ce53a0057d SHA1 bc7b3d3efc2b1699137a2f76166ef2bb4a7ac8c8 SHA256 6cdb9d742cff60aed0330e9e89bbd8b003f308770b74cc1f7bbe89977147455a EBUILD areca-http-1.71.200.ebuild 907 RMD160 c0c5e8b4cbdd04bae46c859da6607610836bf225 SHA1 55ce4b71bfebf5ab07066fe52c871f162a45ab52 SHA256 c031981240b95c918d6deaee7e72bf68023e2d1863c2d8567113afd327ef9b58 MD5 7ea85127d4f96f6dcfcc151fd994d21c areca-http-1.71.200.ebuild 907 diff --git a/apps/sys-apps/areca-http/files/areca-http-initd b/apps/sys-apps/areca-http/files/areca-http-initd index 3cfd879..2928166 100644 --- a/apps/sys-apps/areca-http/files/areca-http-initd +++ b/apps/sys-apps/areca-http/files/areca-http-initd @@ -10,8 +10,14 @@ depend() { start() { ebegin "Starting ${SVCNAME}" + if [[ -f "/var/run/${SVCNAME}.pid" ]] ; then + rm -f "/var/run/${SVCNAME}.pid" + fi + start-stop-daemon \ --start \ + --background \ + --make-pidfile \ --pidfile "/var/run/${SVCNAME}.pid" \ --exec /usr/sbin/areca-http eend $? @@ -22,6 +28,7 @@ stop() { start-stop-daemon \ --stop \ + --signal 9 \ --pidfile "/var/run/${SVCNAME}.pid" \ --exec /usr/sbin/areca-http eend $? |