23 lines
531 B
Plaintext
23 lines
531 B
Plaintext
[Unit]
|
|
Description=Live Hugo Server for a Site
|
|
After=network-online.target
|
|
# if opt is mounted you'll need these
|
|
#Requires=opt.mount
|
|
# After=opt.mount
|
|
# Requires=mnt-data.mount
|
|
# After=mnt-data.mount
|
|
|
|
[Service]
|
|
# set the main user for your system
|
|
#User=ubuntu
|
|
#Group=docker
|
|
Type=simple
|
|
# run will change into the files directory
|
|
# be sure to set the correct absolute directory where run command (hugo repo) is located
|
|
ExecStart=/bin/bash /path/to/hugo/repo/run %i
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=default.target
|