click here for the page on C bindings
ps -o start PID |
start time of the process by PID |
if your rc.d script does
su - $SYNCTHING_USER -c "$SYNCTHING
-home=$CONFDIR -logfile=$LOG
FILE
-logflags=$LOGFLAGS $SYNCTHING_ARGS" 1>/dev/null 2>&1
&
it will fail silently if you happen to call the
script as non-root. Instead have the ampersand be inside the su -c
command argument, so that su can always go interactive asking you
for password
su - $SYNCTHING_USER -c "$SYNCTHING
-home=$CONFDIR -logfile=$LOG
FILE
-logflags=$LOGFLAGS $SYNCTHING_ARGS 1>/dev/null
2>&1 &"