1 --- selinux-sandbox-2.7/sandbox.init.orig 2017-08-04 15:31:00.000000000 +0200
2 +++ selinux-sandbox-2.7/sandbox.init 2017-11-20 19:05:49.396431050 +0100
12 # Source function library.
13 -. /etc/init.d/functions
14 +. /etc/rc.d/init.d/functions
16 +[ -f /etc/sysconfig/sandbox-init ] && . /etc/sysconfig/sandbox-init
18 LOCKFILE=/var/lock/subsys/sandbox
24 - echo -n "Starting sandbox"
26 - [ -f "$LOCKFILE" ] && return 0
29 - mount --make-rshared / || return $?
31 + if [ -f "$LOCKFILE" ]; then
32 + msg_already_running "sandbox"
35 + msg_starting "sandbox"
36 + mount --make-rshared /
38 + [ $RETVAL -eq 0 ] && touch "$LOCKFILE"
42 - echo -n "Stopping sandbox"
44 - [ -f "$LOCKFILE" ] || return 1
45 + if [ ! -f "$LOCKFILE" ]; then
46 + msg_not_running "sandbox"
49 + msg_stopping "sandbox"
54 if [ -f "$LOCKFILE" ]; then
55 - echo "$base is running"
56 + echo "sandbox is running"
58 - echo "$base is stopped"
59 + echo "sandbox is stopped"
66 - start && success || failure
70 - start && success || failure
77 - stop && success || failure
87 - echo $"Usage: $0 {start|stop|status|restart}"
89 + msg_usage "$0 {start|stop|status|restart}"