mirror of https://github.com/spikecodes/libreddit
16 lines
298 B
SYSTEMD
16 lines
298 B
SYSTEMD
|
[Unit]
|
||
|
Description=libreddit daemon
|
||
|
After=network.service
|
||
|
|
||
|
[Service]
|
||
|
DynamicUser=yes
|
||
|
# Default Values
|
||
|
Environment=ADDRESS=0.0.0.0
|
||
|
Environment=PORT=8080
|
||
|
# Optional Override
|
||
|
EnvironmentFile=-/etc/libreddit.conf
|
||
|
ExecStart=/usr/bin/libreddit -a ${ADDRESS} -p ${PORT}
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|