1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#!/bin/sh
# LSB initscript functions, as defined in the LSB Spec 1.1.0
#
# Lawrence Lim <llim@redhat.com> - Tue, 26 June 2007
# Updated to the latest LSB 3.1 spec
# http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic_lines.txt
# Modified by Joost van Baal-Ilić for uruk.
PATH=$PATH:/etc/redhat-lsb:/lib/uruk/lsb
# both Red Hat's and our implementation of lsb_start_daemon e.a.
# rely on file /etc/init.d/functions
if ! test -f /etc/init.d/functions ; then
cat <<END
The file /etc/init.d/functions, as supplied by e.g. RPM
initscripts-9.03.31-2.el6.x86_64 is missing from your system. Uruk should run
fine on any system conforming to the Linux Standard Base, as well as on any Red
Hat Enterprise Linux, CentOS, or Fedora system. If you'd like to run Uruk on
another system you're basically on your own. Perhaps you can find a file
/lib/lsb/init-functions or /etc/init.d/functions somewhere, or perhaps you
could use uruk without using this init script.
END
exit 1
fi
start_daemon () {
lsb_start_daemon "$@"
}
killproc () {
lsb_killproc "$@"
}
pidofproc () {
lsb_pidofproc "$@"
}
log_success_msg () {
lsb_log_message success "$@"
}
log_failure_msg () {
lsb_log_message failure "$@"
}
log_warning_msg () {
lsb_log_message warning "$@"
}
|