git://git.jankratochvil.net
/
udpgate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3306102
)
Implemented LSB init scripts compliance.
author
short
<>
Tue, 15 Jun 2004 11:54:22 +0000
(11:54 +0000)
committer
short
<>
Tue, 15 Jun 2004 11:54:22 +0000
(11:54 +0000)
init.d/Makefile.am
patch
|
blob
|
history
init.d/udpgate.init
patch
|
blob
|
history
diff --git
a/init.d/Makefile.am
b/init.d/Makefile.am
index
9e4788d
..
aaaa444
100644
(file)
--- a/
init.d/Makefile.am
+++ b/
init.d/Makefile.am
@@
-18,7
+18,7
@@
include $(top_srcdir)/Makefile-head.am
include $(top_srcdir)/Makefile-head.am
-initddir=$(sysconfdir)/
rc.d/
init.d
+initddir=$(sysconfdir)/init.d
initd_SCRIPTS=udpgate
EXTRA_DIST+=udpgate.init
CLEANFILES+=udpgate
initd_SCRIPTS=udpgate
EXTRA_DIST+=udpgate.init
CLEANFILES+=udpgate
diff --git
a/init.d/udpgate.init
b/init.d/udpgate.init
index
4f526a6
..
5c72dc7
100755
(executable)
--- a/
init.d/udpgate.init
+++ b/
init.d/udpgate.init
@@
-4,9
+4,6
@@
# chkconfig: 2345 98 02
# description: UDP packets gateway
# chkconfig: 2345 98 02
# description: UDP packets gateway
-# Source function library.
-. /etc/rc.d/init.d/functions
-
# Source our configuration file for these variables.
PORT=9201
LOCATION=/usr/bin/udpgate
# Source our configuration file for these variables.
PORT=9201
LOCATION=/usr/bin/udpgate
@@
-18,7
+15,7
@@
prog="udpgate"
start() {
echo -n $"Starting $prog: "
start() {
echo -n $"Starting $prog: "
-
daemon
$LOCATION --start --port=$PORT
+ $LOCATION --start --port=$PORT
RETVAL=$?
echo
return $RETVAL
RETVAL=$?
echo
return $RETVAL
@@
-36,27
+33,22
@@
case "$1" in
start)
start
;;
start)
start
;;
-
stop)
stop
;;
stop)
stop
;;
-
status)
status)
- status udpgate
;;
restart)
stop
start
;;
condrestart)
;;
restart)
stop
start
;;
condrestart)
- if test "x`pidof udpgate`" != x; then
- stop
- start
- fi
+ stop
+ start
;;
*)
;;
*)
- echo $"Usage: $0 {start|stop|restart
|condrestart|status
}"
+ echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit 1
esac