From 22cfb7a28e4dcfc9e520c9421e50e160e8616612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 11 Jul 2018 18:08:46 +0000 Subject: [PATCH] Add an example openrc service script --- lewdfingerd.openrc-example | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 lewdfingerd.openrc-example diff --git a/lewdfingerd.openrc-example b/lewdfingerd.openrc-example new file mode 100755 index 0000000..ed33452 --- /dev/null +++ b/lewdfingerd.openrc-example @@ -0,0 +1,11 @@ +#!/sbin/openrc-run + +command=/usr/local/bin/setruid +command_args="lewdfingerd /usr/local/bin/lewdfingerd" +pidfile=/var/run/${RC_SVCNAME}.pid + +# We don't create a PID file nor do we background +command_background=true + +# We don't change our group but we do change our user +command_user="root:lewdfingerd"