diff options
author | ShyanJMC | 2021-06-26 19:47:46 -0300 |
---|---|---|
committer | ShyanJMC | 2021-06-26 19:47:46 -0300 |
commit | 15f0500f6c3de34acad3dc1810f781f8e0a90d53 (patch) | |
tree | 6b007f68d24dbbc69725ee58472e0248d7edd407 | |
parent | ec3533051a30427c0f1f7b06f59a6bf31077e6e8 (diff) | |
download | aur-15f0500f6c3de34acad3dc1810f781f8e0a90d53.tar.gz |
Added BOINC file and template.
-rw-r--r-- | boinc.initd | 20 | ||||
-rw-r--r-- | template.initd | 39 |
2 files changed, 59 insertions, 0 deletions
diff --git a/boinc.initd b/boinc.initd new file mode 100644 index 000000000000..7d875f0e0eb9 --- /dev/null +++ b/boinc.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run + +command="/usr/bin/boinc" + +command_args="--allow_remote_gui_rpc --redirectio --dir /var/lib/bonc" +pidfile="/var/run/${RC_SVCNAME}.pid" +command_args_background="--daemon" + +name=boinc + +depend() { + need net + use dns logger netmount +} + +command_background=true + +command_user="boinc:boinc" + + diff --git a/template.initd b/template.initd new file mode 100644 index 000000000000..79f429425057 --- /dev/null +++ b/template.initd @@ -0,0 +1,39 @@ +#!/sbin/openrc-run + +# The order doesn't matter. + +# Execute this program at start. +command="[absolute_path_to_command]" +# Because every distro can change the bindir, is a good idea specify the system value of bindir. +command=@bindir@/[command] + +# Execute the above program with this arguments. +command_args="[args]" + +# Create the PID file (for statsu function) in this absolute path. +pidfile="[absolute_path_to_PID]" +# Since OpenRC service names must be unique, a value of +pidfile="/var/run/${RC_SVCNAME}.pid" + + +# If the daemon runs in the foreground by default but has options to background itself and to create a pidfile, then you'll also need specifie this. +# Usually the argument is; --daemon but can change. +command_args_background="[args]" + +# Programs name +name=[name] + +# Dependencies, are specified by others services +depend() { + # NET; They are not satisfied by the loopback interface, so "need net" requires some other interface to be up. + need net + use dns logger netmount +} + +# If the program dont create the PID you can specify to OpenRC for create it. +command_background=true + +# If your daemon doesn't know how to change its own user or group, then you can tell start-stop-daemon to launch it as an unprivileged user with +command_user="user:group" + + |