19 lines
363 B
SYSTEMD
19 lines
363 B
SYSTEMD
|
[Unit]
|
||
|
Description=Pasty is a fast and lightweight code pasting server
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
User=pasty
|
||
|
|
||
|
# Here store the configs
|
||
|
EnvironmentFile=/etc/pasty/env
|
||
|
|
||
|
# Start program here, the pasty read `./web` to find the front pages
|
||
|
WorkingDirectory=/usr/lib/pasty/
|
||
|
|
||
|
ExecStart=/usr/lib/pasty/pasty
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|