Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd service is not ran as the created user #436

Closed
nefilim opened this issue Dec 13, 2014 · 1 comment
Closed

systemd service is not ran as the created user #436

nefilim opened this issue Dec 13, 2014 · 1 comment

Comments

@nefilim
Copy link
Contributor

nefilim commented Dec 13, 2014

[Service]
Type=simple
WorkingDirectory=/usr/local/myapp
ExecStart=/usr/local/myapp/bin/myapp
Restart=always
RestartSec=60
User=myapp <== MISSING

is there a way to instruct SBT to add the User= directive?

@nefilim nefilim changed the title systemd service is not ran as the create user systemd service is not ran as the created user Dec 13, 2014
@muuki88
Copy link
Contributor

muuki88 commented Dec 13, 2014

You can override the template by placing a file named start in src/templates.
Read more about it in the docs

However a pull request adding this would be nice as well :)

kardapoltsev added a commit to kardapoltsev/sbt-native-packager that referenced this issue Mar 30, 2015
muuki88 added a commit that referenced this issue Mar 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants