We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0cd345 + dcf3171 commit de024c0Copy full SHA for de024c0
1 file changed
packaging/init
@@ -14,13 +14,15 @@ NAME=libnetwork
14
15
PIDFILE=/var/run/$NAME.pid
16
LOGFILE=/var/log/$NAME.log
17
+SOCKDIR=/var/run/docker/plugins
18
19
start() {
20
if [ -f $PIDFILE ] && kill -0 $(cat $PIDFILE); then
21
echo 'Service already running' >&2
22
return 1
23
fi
24
echo 'Starting service…' >&2
25
+ mkdir -p $SOCKDIR
26
local CMD="$SCRIPT &> \"$LOGFILE\" & echo \$!"
27
su -c "$CMD" $RUNAS > "$PIDFILE"
28
echo 'Service started' >&2
@@ -42,7 +44,7 @@ status() {
42
44
PID=$(cat $PIDFILE)
43
45
if [ -z "$(ps axf | grep ${PID} | grep -v grep)" ]; then
46
printf "%s\n" "The process appears to be dead but pidfile still exists"
- else
47
+ else
48
echo "Running, the PID is $PID"
49
50
else
0 commit comments