Added packaging files for deb-based linux distributions.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=ALFIS default config generator
|
||||
ConditionPathExists=|!/etc/alfis.conf
|
||||
ConditionFileNotEmpty=|!/etc/alfis.conf
|
||||
Wants=local-fs.target
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Group=alfis
|
||||
StandardOutput=file:/etc/alfis.conf
|
||||
ExecStart=/usr/bin/alfis -g
|
||||
ExecStartPost=/usr/bin/chmod 0640 /etc/alfis.conf
|
||||
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=alfis
|
||||
Wants=network.target
|
||||
Wants=alfis-default-config.service
|
||||
After=network.target
|
||||
After=alfis-default-config.service
|
||||
|
||||
[Service]
|
||||
Group=alfis
|
||||
ProtectHome=true
|
||||
ProtectSystem=true
|
||||
SyslogIdentifier=alfis
|
||||
CapabilityBoundingSet=CAP_NET_ADMIN
|
||||
WorkingDirectory=/var/lib/alfis
|
||||
ExecStart=/usr/bin/alfis -n -c /etc/alfis.conf
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=always
|
||||
TimeoutStopSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user