first pass
This commit is contained in:
16
service.template
Normal file
16
service.template
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Deployment of $host (on port $port, from $repo/$branch:$commitHash) [$deploymentId]
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment="PORT=$port"
|
||||
ExecStart=make start
|
||||
User=drm
|
||||
WorkingDirectory=$serviceDir/src
|
||||
Restart=no
|
||||
StandardOutput=file:$logsDir/start.log
|
||||
StandardError=file:$logsDir/start.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user