lookyloo/etc/systemd/system/lookyloo.service.sample

23 lines
829 B
Plaintext
Raw Normal View History

[Unit]
Description=uWSGI instance to serve lookyloo
After=network.target
[Service]
2020-10-07 15:34:25 +02:00
User=<system user used to install lookyloo>
Group=<group of the user used to install lookyloo>
Type=forking
2020-10-07 15:34:25 +02:00
WorkingDirectory=<path to the directory where you cloned the repository>
Environment="PATH=<path to the directory where the poetry executable is>:/usr/bin"
2020-10-07 15:34:25 +02:00
ExecStart=/bin/bash -c "exec poetry run start"
ExecStop=/bin/bash -c "exec poetry run stop"
# The "+" means the command is executed as root, "-" means the command is allowed to fail.
ExecStartPre=+-/bin/mkdir /var/log/lookyloo
ExecStartPre=+-/bin/chown -R <system user used to install lookyloo>:<group of the user used to install lookyloo>
2020-11-06 16:17:03 +01:00
StandardOutput=append:/var/log/lookyloo/message.log
StandardError=append:/var/log/lookyloo/error.log
[Install]
WantedBy=multi-user.target