diff --git a/conf/openrc/frpc.sh b/conf/openrc/frpc.sh index cf94d9a1..7d2ec954 100755 --- a/conf/openrc/frpc.sh +++ b/conf/openrc/frpc.sh @@ -15,9 +15,9 @@ depend() { start() { ebegin "Starting frpc" start-stop-daemon --start --background \ + --make-pidfile --pidfile $pidfile \ --exec $command \ - -- $command_opts \ - --make-pidfile --pidfile $pidfile + -- $command_opts eend $? } diff --git a/conf/openrc/frps.sh b/conf/openrc/frps.sh index eeb48f5b..d44ab550 100755 --- a/conf/openrc/frps.sh +++ b/conf/openrc/frps.sh @@ -15,9 +15,9 @@ depend() { start() { ebegin "Starting frps" start-stop-daemon --start --background \ + --make-pidfile --pidfile $pidfile \ --exec $command \ - -- $command_opts \ - --make-pidfile --pidfile $pidfile + -- $command_opts eend $? }