KiwiIRC icon indicating copy to clipboard operation
KiwiIRC copied to clipboard

init.d.example

Open TheBeerbarian opened this issue 9 years ago • 2 comments

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.

TheBeerbarian avatar Dec 22 '16 21:12 TheBeerbarian

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

ShadowNinja avatar Dec 31 '16 03:12 ShadowNinja

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

dasJ avatar Jan 26 '17 06:01 dasJ