How to configure init.d rc script for Daemon-kit project?

I use the Ruby Daemon suite to configure services that perform various background operations for my Rails application.

It works great when entering the command line:

./bin/bgservice

How do I create an initd startd script for it so that it reboots upon reboot?

+3
source share
2 answers

There are several approaches:

  • /etc/init.d/, /etc/rc?.d/ ( ). Debian openSUSE initscript . , "", . (, , Debian, start-stop-daemon(8), .)

  • upstart , upstart (, , Ubuntu, Google ChromeOS, Fedora,.. ?). upstart - , /etc/init/ Ubuntu, , upstart. , upstart , initscripts.

  • /etc/inittab , - SysV-init inittab(5). , fork(2)/setsid(2)/fork(2), init pid, fork(2), , .

  • Vixie cron(8) @reboot crontab(5). crontab, crontabs, , .

+2

- init - , , init-V /insserv, .

, - god , ( runit ), .

, runit ...

.

0

Source: https://habr.com/ru/post/1796198/


All Articles