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

Bring the SystemV init.d scripts inline with the Debian policies #130

Merged
merged 1 commit into from
Jan 13, 2014

Conversation

aparkinson
Copy link
Contributor

I'm in the process of updating the init.d script and require a new template, being a Scala noob could someone review it?

@@ -1 +1,2 @@
update-rc.d ${{app_name}} defaults
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line adds the script to autostart, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@muuki88
Copy link
Contributor

muuki88 commented Jan 13, 2014

It looks good to me. I'll try to test it this week. While taking a look I found something.
The prerm-template is used for Upstart and SystemV.

service ${{app_name}} stop || echo "${{app_name}} wasn't even running!"

will this succeed?

@aparkinson
Copy link
Contributor Author

Yes: On Ubuntu systems you can control init.d scripts using the service command but I don't know if it works on Debian

I have a few more tweaks to add but I haven't finished testing them.

@jsuereth
Copy link
Member

At worst the message will show up needless, but that should be harmless, right?

In the future, maybe we should have a different stop template for SystemV perhaps.

@jsuereth
Copy link
Member

Cool! THis looks great, thanks much for the fixes.

jsuereth added a commit that referenced this pull request Jan 13, 2014
Bring the SystemV init.d scripts inline with the Debian policies
@jsuereth jsuereth merged commit 947af33 into sbt:master Jan 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants