Tech/OSS/systemd/Service with config files
Jump to navigation
Jump to search
Assuming your app Fluffy Kitty has a systemd unit file and you want to load some configs.
- Directory Structure in /etc but could also be /usr/lib/systemd/system or /run/systemd/system
/etc/systemd/system/fluffykitty.service /etc/systemd/system/fluffykitty.service.d/execstart.conf /etc/systemd/system/fluffykitty.service.d/options.conf
- fluffykitty.service.d/execstart.conf
[Service] ExecStart=/usr/local/bin/fluffykitty $OPTIONA $OPTIONB
- fluffykitty.service.d/options.conf
[Service] Environment=OPTIONA=--verbose Environment=OPTIONB=--loglevel4