How do I define an Ubuntu Linux16.04 systemd service for fastcgi-mono-server4 or xsp4?
I have already defined an Ubuntu Linux16.04 systemd service for apache2 by copying obex.service to apache2.service and changing the ExecStart line in apache2.service.
When I do the same thing for xsp4.service where xsp4 is a C# executable , systemctl status xsp4.service complains about: Failed to execute operation: Too many levels of symbolic links. Is it because in /etc/systemd/system , I "soft" linked xsp4.service using the command ln -s /usr/lib/systemd/user/xsp4.service xsp4.service?
Also, we would like to configure the ordering of service files so that apache2.service runs before xsp4.service.
Here is xsp4.service :
[Unit] Description=Xsp4 service [Service] ExecStart=/usr/bin/xsp4 --port 9000 --root /var/www/firstaspnet [Install] Alias=dbus-org.bluez.obex.service
Any help is greatly appreciated.