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

init.d.example #914

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

TheBeerbarian
Copy link

I have seen the question come from people wanting service to start/stop on system boot/reboot.
Some nice people have helped out with more than adequate solutions.

If you would like this init.d.example file, maybe it can be added to the distribution may help some people out. If not at the root, maybe in a contrib folder?

This example file works on Debian using systemctl.

Have seen the question come up and some nice people helping out with correct solutions.
If you would like, the init.d.example file added to the distribution may help some people out.
This example file works on Debian using systemctl.
@ShadowNinja
Copy link

FWIW, here's a Systemd unit file I use.

[Unit]
Description=KiwiIRC webchat
After=network.target

[Service]
Type=forking
User={{ user }}
Group={{ user }}
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
PIDFile={{ user_dir }}/KiwiIRC/kiwiirc.pid
ExecStart={{ user_dir }}/KiwiIRC/kiwi start
ExecStop={{ user_dir }}/KiwiIRC/kiwi stop
ExecReload={{ user_dir }}/KiwiIRC/kiwi reconfig

[Install]
WantedBy=multi-user.target

@dasJ
Copy link

dasJ commented Jan 26, 2017

@ShadowNinja's approach seems better for Debian as it dosn't use legacy systemd interfaces

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