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:
be5654b61b 2023-08-18 9: # command to start service
be5654b61b 2023-08-18 10: DAEMON_example_COMMAND?=/path/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:
bd31af2533 2020-04-10 24: # kernel modules to load prior to service start
bd31af2533 2020-04-10 25: DAEMON_example_MODULES?=
bd31af2533 2020-04-10 26:
bd31af2533 2020-04-10 27: # user to run service as
bd31af2533 2020-04-10 28: DAEMON_example_USER?=root
bd31af2533 2020-04-10 29:
bd31af2533 2020-04-10 30: # extra commands to execute before starting service
04f7295047 2022-05-30 31: # ${_SERVICE} - starts after root mount appear
04f7295047 2022-05-30 32: # ${_EARLYSERVICE} - not required on early boot
bd31af2533 2020-04-10 33: # you also can select specific starter by inheriting class by full name:
04f7295047 2022-05-30 34: # ${_(EARLY)?SERVICE(_(SVC|DAEMON|PLAIN))?}
04f7295047 2022-05-30 35:
04f7295047 2022-05-30 36: example: ${_EARLYSERVICE}
04f7295047 2022-05-30 37: : run commands that should go before the service start