Mageia Bugzilla – Attachment 1948 Details for
Bug 5262
prefdm.service does not start on boot (ordering cycles due to lack of LSB headers in sysvinit scripts)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
rinetd sysv init script
rinetd (text/plain), 1.28 KB, created by
Martin Whitaker
on 2012-04-08 21:39:11 CEST
(
hide
)
Description:
rinetd sysv init script
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2012-04-08 21:39:11 CEST
Size:
1.28 KB
patch
obsolete
>#!/bin/sh ># ># rinetd A TCP redirection server ># ># chkconfig: - 80 20 ># description: rinetd is a TCP redirection server ># processname: rinetd ># config: /etc/rinetd.conf > ># Source function library. >. /etc/rc.d/init.d/functions > ># Source networking configuration. >. /etc/sysconfig/network > ># Check that networking is up. >[ "$NETWORKING" = "no" ] && exit 0 > >exec="/usr/sbin/rinetd" >prog=$(basename $exec) > >lockfile=/var/lock/subsys/$prog > >start() { > echo -n $"Starting $prog: " > daemon $exec > retval=$? > echo > [ $retval -eq 0 ] && touch $lockfile > return $retval >} > >stop() { > echo -n $"Stopping $prog: " > killproc $prog > retval=$? > echo > [ $retval -eq 0 ] && rm -f $lockfile > return $retval >} > >restart() { > stop > start >} > >reload() { > if [ -f "$lockfile" ]; then > echo -n $"Reloading $prog: " > killproc $prog -HUP > retval=$? > echo > return $retval > else > restart > fi >} > >force_reload() { > restart >} > >fdr_status() { > status $prog >} > >case "$1" in > start|stop|restart|reload) > $1 > ;; > force-reload) > force_reload > ;; > status) > fdr_status > ;; > condrestart|try-restart) > [ ! -f $lockfile ] || restart > ;; > *) > echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}" > exit 2 >esac
#!/bin/sh # # rinetd A TCP redirection server # # chkconfig: - 80 20 # description: rinetd is a TCP redirection server # processname: rinetd # config: /etc/rinetd.conf # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ "$NETWORKING" = "no" ] && exit 0 exec="/usr/sbin/rinetd" prog=$(basename $exec) lockfile=/var/lock/subsys/$prog start() { echo -n $"Starting $prog: " daemon $exec retval=$? echo [ $retval -eq 0 ] && touch $lockfile return $retval } stop() { echo -n $"Stopping $prog: " killproc $prog retval=$? echo [ $retval -eq 0 ] && rm -f $lockfile return $retval } restart() { stop start } reload() { if [ -f "$lockfile" ]; then echo -n $"Reloading $prog: " killproc $prog -HUP retval=$? echo return $retval else restart fi } force_reload() { restart } fdr_status() { status $prog } case "$1" in start|stop|restart|reload) $1 ;; force-reload) force_reload ;; status) fdr_status ;; condrestart|try-restart) [ ! -f $lockfile ] || restart ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}" exit 2 esac
View Attachment As Raw
Actions:
View
Attachments on
bug 5262
:
1947
| 1948 |
1949
|
1950
|
1951
|
1968
|
1969
|
2327
|
2328
|
2331
|
2333