Пример юнита для systemd
Материал из BiTel WiKi
Версия от 12:50, 25 мая 2015; Zavndw (Обсуждение | вклад)
BGBillingServer
[Unit] Description=BGBilling Server daemon Requires=activemq.service After=activemq.service [Service] EnvironmentFile=/etc/conf.d/bgbilling Type=forking ExecStart=/opt/bgbilling/server.sh start ExecStop=/opt/bgbilling/server.sh stop [Install] WantedBy=multi-user.target
activemq
[Unit] Description=Messaging and Integration Patterns provider After=network.target [Service] Type=forking ExecStart=/opt/activemq/bin/linux/activemq start >/dev/null 2>&1 [Install] WantedBy=multi-user.target