You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
711 B

[Unit]
Description=Annual expense tracker
ConditionPathExists=/usr/local/bin/create-expense
[Service]
Type=simple
User=annualexpense
Group=annualexpense
LimitNOFILE=1024
LockPersonality=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=full
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
SystemCallArchitectures=native
AmbientCapabilities=CAP_NET_BIND_SERVICE
Restart=on-failure
RestartSec=10
SyslogIdentifier=create-expanse
WorkingDirectory=/home/annualexpense
ExecStart=/usr/local/bin/create-expense
[Install]
WantedBy=multi-user.target