Sillyus Sodus
Dabbler
- Joined
- Feb 9, 2016
- Messages
- 14
I am trying to start and stop the Transmission service from another RC script (OpenVPN).
I can get this to work when I use
However, it doesn't work on the initial system startup of the OpenVPN servce, which I have enabled in /etc/rc.conf.
Is there an initial start (and possibly even an initial stop) value I can use in the if statement to cover this situation so the system will start OpenVPN and Transmission will be started from OpenVPN's RC script?
I can get this to work when I use
service openvpn start||stop||restart
by using the following in the OpenVPN script:Code:
if [ "$1" = "start||stop||restart" ]; then
However, it doesn't work on the initial system startup of the OpenVPN servce, which I have enabled in /etc/rc.conf.
Is there an initial start (and possibly even an initial stop) value I can use in the if statement to cover this situation so the system will start OpenVPN and Transmission will be started from OpenVPN's RC script?
Last edited by a moderator: