I installed Subversion Edge 5.2.2 which uses Apache on CentOS Linux release 7.2.1511. I installed it as a service which I can stop / start.
The httpd.conf
has entry
PidFile "/opt/csvn-5.2.2/data/run/httpd.pid"
I configured the service to automatically start on boot but this seems to work differently from manual sudo service csvn-httpd start
stop
.
When the service starts on (re)boot no pid file /opt/csvn-5.2.2/data/run/httpd.pid
is created!
This is rather unexpected. Ideally we would be able to configure services to automatically start on boot easily but as it turns out this requires some extra magic to work well.
What is the correct way to make services start on boot? What is the secret?
0 Answers