bd31af2533 2020-04-10 1: # vim:ft=make:
bd31af2533 2020-04-10 2:
bd31af2533 2020-04-10 3: # flags to force daemonizing
bd31af2533 2020-04-10 4: DAEMON_example_BACKGROUND?=
be5654b61b 2023-08-18 5:
be5654b61b 2023-08-18 6: # default working directory
be5654b61b 2023-08-18 7: DAEMON_example_CWD?=/some/path
be5654b61b 2023-08-18 8:
cbff0b494f 2023-08-18 9: # command to start service, first present executable is used
cbff0b494f 2023-08-18 10: DAEMON_example_COMMAND?=/path/service /path/other/service
bd31af2533 2020-04-10 11:
bd31af2533 2020-04-10 12: # enabled by default?
bd31af2533 2020-04-10 13: DAEMON_example_ENABLE?=no
bd31af2533 2020-04-10 14:
bd31af2533 2020-04-10 15: # general service flags
bd31af2533 2020-04-10 16: DAEMON_example_FLAGS?=
bd31af2533 2020-04-10 17:
bd31af2533 2020-04-10 18: # flags to prevent daemonizing
bd31af2533 2020-04-10 19: DAEMON_example_FOREGROUND?=
bd31af2533 2020-04-10 20:
bd31af2533 2020-04-10 21: # group to run service as
bd31af2533 2020-04-10 22: DAEMON_example_GROUP?=wheel
bd31af2533 2020-04-10 23:
adf4eb9997 2023-11-04 24: # lower process priority by using `idprio`
adf4eb9997 2023-11-04 25: DAEMON_example_IDPRIO?=
adf4eb9997 2023-11-04 26:
bd31af2533 2020-04-10 27: # kernel modules to load prior to service start
bd31af2533 2020-04-10 28: DAEMON_example_MODULES?=
adf4eb9997 2023-11-04 29:
adf4eb9997 2023-11-04 30: # raise process priority by using `rtprio`
adf4eb9997 2023-11-04 31: # (IDPRIO setting takes precedence if set)
adf4eb9997 2023-11-04 32: DAEMON_example_RTPRIO?=
bd31af2533 2020-04-10 33:
bd31af2533 2020-04-10 34: # user to run service as
bd31af2533 2020-04-10 35: DAEMON_example_USER?=root
bd31af2533 2020-04-10 36:
bd31af2533 2020-04-10 37: # extra commands to execute before starting service
adf4eb9997 2023-11-04 38: # ${_EARLYSERVICE} - starts after root mount appear
adf4eb9997 2023-11-04 39: # ${_SERVICE} - not required on early boot
bd31af2533 2020-04-10 40: # you also can select specific starter by inheriting class by full name:
04f7295047 2022-05-30 41: # ${_(EARLY)?SERVICE(_(SVC|DAEMON|PLAIN))?}
04f7295047 2022-05-30 42:
04f7295047 2022-05-30 43: example: ${_EARLYSERVICE}
04f7295047 2022-05-30 44: : run commands that should go before the service start