summaryrefslogtreecommitdiffstats
path: root/src.etc/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'src.etc/init.d')
-rwxr-xr-xsrc.etc/init.d/httpd5
-rwxr-xr-xsrc.etc/init.d/klogd2
-rw-r--r--src.etc/init.d/ntpd2
-rwxr-xr-xsrc.etc/init.d/syslogd2
-rwxr-xr-xsrc.etc/init.d/syslogd-ipc2
-rwxr-xr-xsrc.etc/init.d/telnetd5
6 files changed, 8 insertions, 10 deletions
diff --git a/src.etc/init.d/httpd b/src.etc/init.d/httpd
index 2ebd361..796ccd3 100755
--- a/src.etc/init.d/httpd
+++ b/src.etc/init.d/httpd
@@ -6,12 +6,11 @@ STOP='60'
start()
{
log 'Starting HTTP daemon'
- start-stop-daemon -S -q -p /var/run/httpd.pid -m \
- -x /usr/sbin/httpd -b -- -f -h /var/www
+ start-stop-daemon -S -q -x /usr/sbin/httpd -b -- -f -h /var/www
}
stop()
{
log 'Stopping HTTP daemon'
- start-stop-daemon -K -q -p /var/run/httpd.pid
+ start-stop-daemon -K -q -x /usr/sbin/httpd
}
diff --git a/src.etc/init.d/klogd b/src.etc/init.d/klogd
index 8a12c85..dae7b82 100755
--- a/src.etc/init.d/klogd
+++ b/src.etc/init.d/klogd
@@ -12,5 +12,5 @@ start()
stop()
{
log 'Stopping kernel log daemon'
- start-stop-daemon -K -q -p /var/run/klogd.pid
+ start-stop-daemon -K -q -x /sbin/klogd
}
diff --git a/src.etc/init.d/ntpd b/src.etc/init.d/ntpd
index a71995e..b07be4f 100644
--- a/src.etc/init.d/ntpd
+++ b/src.etc/init.d/ntpd
@@ -16,5 +16,5 @@ start()
stop()
{
log 'Stopping NTP daemon'
- start-stop-daemon -K -q -p /var/run/ntpd.pid
+ start-stop-daemon -K -q -x /usr/sbin/ntpd
}
diff --git a/src.etc/init.d/syslogd b/src.etc/init.d/syslogd
index 37e6b94..36415b6 100755
--- a/src.etc/init.d/syslogd
+++ b/src.etc/init.d/syslogd
@@ -12,5 +12,5 @@ start()
stop()
{
log 'Stopping system logging daemon'
- start-stop-daemon -K -q -p /var/run/syslogd.pid
+ start-stop-daemon -K -q -x /sbin/syslogd
}
diff --git a/src.etc/init.d/syslogd-ipc b/src.etc/init.d/syslogd-ipc
index 9b88d7e..f91e2d5 100755
--- a/src.etc/init.d/syslogd-ipc
+++ b/src.etc/init.d/syslogd-ipc
@@ -12,5 +12,5 @@ start()
stop()
{
log 'Stopping system logging daemon'
- start-stop-daemon -K -q -p /var/run/syslogd.pid
+ start-stop-daemon -K -q -x /sbin/syslogd
}
diff --git a/src.etc/init.d/telnetd b/src.etc/init.d/telnetd
index 4bb7613..e9630ea 100755
--- a/src.etc/init.d/telnetd
+++ b/src.etc/init.d/telnetd
@@ -6,12 +6,11 @@ STOP='60'
start()
{
log 'Starting telnet daemon'
- start-stop-daemon -S -q -p /var/run/telnetd.pid -m \
- -x /usr/sbin/telnetd -b -- -F
+ start-stop-daemon -S -q -x /usr/sbin/telnetd -b -- -F
}
stop()
{
log 'Stopping telnet daemon'
- start-stop-daemon -K -q -p /var/run/telnetd.pid
+ start-stop-daemon -K -q -x /usr/sbin/telnetd
}