2021-03-07 01:45:20 +01:00
|
|
|
[Unit]
|
|
|
|
Description=__APP__ service
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
|
|
|
WorkingDirectory=__FINALPATH__/
|
2021-03-07 02:33:00 +01:00
|
|
|
ExecStart=__FINALPATH__/beehive -bind 127.0.0.1:__PORT__ -canonicalurl https://__DOMAIN__ -config __FINALPATH__/__APP__.conf
|
2021-03-07 01:45:20 +01:00
|
|
|
Restart=always
|
|
|
|
StandardOutput=/var/log/__APP__/__APP__.log
|
|
|
|
StandardError=/var/log/__APP__/__APP__.log
|
|
|
|
SyslogIdentifier=__APP__
|
2021-06-13 15:36:08 +02:00
|
|
|
#Environment=GOPATH=/usr/local/go/bin
|
2021-03-07 01:45:20 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|