After updating my installation to systemd I can't get XAMPP to autostart at boot.
Previously I used rc.local to execute the command: /opt/lampp/lampp start
Now I'm trying to create a service for starting XAMPP so I made the following file:
[Unit] Description=XAMPP [Service] ExecStart=/opt/lampp/lampp start
Then I tried to enable this service by entering: sudo systemctl enable xampp.service
Which gives me the error:
The unit files have no [Install] section. They are not meant to be enabled using systemctl.
I was looking into other services, but I have no clue what I need to place in an install section.
Anyone who can help me out with this one?
should be enough.
man 5 systemd.unit
if You want to know what it does.
'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
Hello to everyone.
I create a service to start xampp in /etc/systemd/system/xampp.service
[jaume@R2D2 ~]$ sudo systemctl enable xampp.service
ln -s '/etc/systemd/system/xampp.service' '/etc/systemd/system/multi-user.target.wants/xampp.service'
[jaume@R2D2 ~]$ sudo systemctl start xampp.service
[jaume@R2D2 ~]$ cat /etc/systemd/system/xampp.service
I don't know what happen, lampp don't start.... Some suggestion?
Sorry for my English
Last edited by kryta (2012-11-07 18:11:00)
Do anyone know what happen?
Thank you so much.
I created /etc/systemd/system/xampp.service with the following content:
Then, I runned as Root $systemctl enable xampp.service without any error / problem...
Finally, I restarted the machine, and XAMPP does not auto start... It only starts if I run /opt/lampp/lampp start at the console
Any further help, please?
Thank you and have a great year
i have figured out a solution that worked for me (fedora 17)
then write the following:
systemctl enable xampp.service