Скрипты /etc/init.d для Ubuntu
-
Коллеги,
Я тут налабал скрипты для старта и стопа NetXMS сервера и агента в Убунту Линуксе. Думаю, что они пойдут на любой debian-системе (хотя не очень в этом уверен). Feel free, так сказать. Для инсталляции нужно проделать следующие шаги:
- Поместить скрипты в /etc/init.d
- Сделать их executable:
chmod u+x /etc/init.d/netxmsd && chmod u+x /etc/init.d/nxagentd- Поменять переменные, указывающие на расположение файлов (DAEMON, PIDFILE)
- Прописать линки в соответствующие rc-директории. Я делаю это так:
#cd /etc/init.d #update-rc.d netxmsd start 50 S . stop 18 1 . #update-rc.d nxagentd start 51 S . stop 17 1 .
-
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login