Skip to content

Commit

Permalink
Merge pull request #611 from ekuns/master
Browse files Browse the repository at this point in the history
If the /var/run (aka /run) folder doesn't exist for the PID file, create it
  • Loading branch information
muuki88 committed Jul 10, 2015
2 parents 3dc7c51 + 9c74f70 commit 4fd857e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ ExecStart=${{chdir}}/bin/${{exec}}
Restart=always
RestartSec=${{retryTimeout}}
User=${{daemon_user}}
ExecStartPre=/bin/mkdir -p /run/${{app_name}}
ExecStartPre=/bin/chown ${{daemon_user}}:${{daemon_group}} /run/${{app_name}}
ExecStartPre=/bin/chmod 755 /run/${{app_name}}
PermissionsStartOnly=true

[Install]
WantedBy=multi-user.target

0 comments on commit 4fd857e

Please sign in to comment.