Skip to content

Commit

Permalink
Add systemd service file
Browse files Browse the repository at this point in the history
  • Loading branch information
chmouel committed Dec 26, 2019
1 parent 85b2aa8 commit cb746db
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions etc/go-simple-uploader.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[Unit]
Description=GoLang Simple Uploader
After=syslog.target

[Service]
User=user
Group=group
Environment=UPLOADER_DIRECTORY=/var/www/uploader
Environment=UPLOADER_PORT=8000
PIDFile=/run/%I.pid
RemainAfterExit=yes
ExecStart=/usr/local/bin/go-simple-uploader
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -INT $MAINPID
Restart=always
StandardError=syslog
KillSignal=SIGQUIT

[Install]
WantedBy=multi-user.target

0 comments on commit cb746db

Please sign in to comment.