We need to lump together Apache2 Server and xsp2 server(or mod-mono-server server) in the configuration for the auto start sample shown below when the PC reboots.
Quoting from the article, https://askubuntu.com/questions/9382/how-can-i-configure-a-service-to-run-at-startup
"sudo update-rc.d minidlna defaults
This should add the service to the automatic startup system. But if you get:
System start/stop links for /etc/init.d/minidlna already exist.
Do the command
sudo update-rc.d minidlna enable"
How could I adapt the above sample so that Apache2 Server and xsp2 server are lumped together during the automatic startup procedure?
I was thinking of launching Apache2 first directly followed by launching xsp2 next. Is this possible to do with Ubuntu 16.04 or is there a better way?
Any help is greatly appreciated.
systemd
to start services.apache
will have the required files to start it automatically at boot, but you may have to write your own formono-xsp2
. – garethTheRed Jun 12 '16 at 21:40systemctl enable apache2
. You could (probably) copy the apache.service
file and change theExecStart
forxsp2
. I suggestedmono-xsp2
as the XSP package after a very quick Google - feel free to ignore that :-) – garethTheRed Jun 13 '16 at 06:36[http://stackoverflow.com/questions/8158665/mono-and-ihttphandler][1] May I use apache2 to xsp2 on a standalone basis to serve ASP.NET content to browser users?
– Frank Jun 13 '16 at 07:16