Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

fedora 19 service management

Hi all, I need to start a service before the login in my fedora 19. The service should launch an application in background as root before to enter as a user The bash script works properly, but calling it as a service it doesn't work The code of the service is the following:

[Unit]
Description=epcore server activation
After=multi-user.target
Before=getty.target

[Service]
Type=simple
ExecStart=/usr/local/bin/epcore.sh start
TimeoutSec=5

[Install]
WantedBy=multi-user.target
Alias=epcore.service

I have activated the service with the commands

systemctl daemon-reload
systemctl enable epcore.sh

Then I did a reboot. At the next power-up the service was not loaded.

Looking at /var/log/messages, I see the starting message of the service, but the application has not been loaded (perhaps it crashed)

Do you have any suggestion on how to manage the service

Thank you

fedora 19 service management

Hi all, I need to start a service before the login in my fedora 19. The service should launch an application in background as root before to enter as a user The bash script works properly, but calling it as a service it doesn't work The code of the service is the following:

[Unit]
Description=epcore server activation
After=multi-user.target
Before=getty.target

[Service]
Type=simple
ExecStart=/usr/local/bin/epcore.sh start
TimeoutSec=5

[Install]
WantedBy=multi-user.target
Alias=epcore.service

I have activated the service with the commands

systemctl daemon-reload
systemctl enable epcore.sh

Then I did a reboot. At the next power-up the service was not loaded.

Looking at /var/log/messages, I see the starting message of the service, but the application has not been loaded (perhaps it crashed)

Do you have any suggestion on how to manage the service

Thank you