can i start services in order with systemctl?

Ask questions about Arch Linux ARM. Please search before making a new topic.

can i start services in order with systemctl?

Postby gschoppe » Fri Feb 22, 2013 11:07 pm

I have three services that I need to run on boot:
1. ntpd
2. openvpn
3. sockd (dante)

but there are two problems:
1. my clock needs to be set by ntp before I start openvpn, or my certificate is refused by the vpn server
2. the tunnel needs to be created by openvpn before i start dante, or it will error out because the tun0 interface doesn't exist

How can I get arch to run each service in order, when it boots?
gschoppe
 
Posts: 28
Joined: Thu Feb 21, 2013 11:58 pm

Re: can i start services in order with systemctl?

Postby pepedog » Sat Feb 23, 2013 12:37 am

Look at this, requires and after is what you want.
https://wiki.archlinux.org/index.php/Sy ... vice_files
Right below is how to customise
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: can i start services in order with systemctl?

Postby gschoppe » Sat Feb 23, 2013 6:43 pm

Thank you... I also found that openvpn allows scripts to be referenced from the conf file, to run on successful connection or on connection termination. for my purposes, this option proved more viable.
gschoppe
 
Posts: 28
Joined: Thu Feb 21, 2013 11:58 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 3 guests