ansible/roles/noodlehub/templates/noodlehub.service.j2

16 lines
308 B
Plaintext
Raw Permalink Normal View History

[Unit]
Description=Noodlehub
After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User={{ noodlehub_user }}
Group={{ noodlehub_user }}
WorkingDirectory={{ noodlehub_dir }}
ExecStart={{ noodlehub_dir }}/venv/bin/python ./noodle_hub
Restart=always
[Install]
WantedBy=multi-user.target