Ask Your Question

current best practice to run a script runs at Fedora 23 startup.

asked 2016-07-13 14:12:12 -0600

paulhr gravatar image

I have a Fedora 23 server, not workstation. I want the current best practice to run a script that starts my Tomee-Plume server. I can find old forum posts about using the rc.local command. But is that still the best practice for Fedora 23?

I have tried to create my own "systemd unit" file. While there is a "systemd unit" file for Tomcat, there is no "systemd unit" file for Tomee-Plume. Trying to customize the existing Tomcat "systemd unit" file for Tomee-Plume has failed. My skills are not deep enough to figure out why it always locks on exit.

Is the old /etc/rc.d/rc.local command the only option left in my case? Or is there something newer and better?

edit retag flag offensive close merge delete


You can create your own systemd script to inicialize our service you can use this guide

aeperezt gravatar imageaeperezt ( 2016-07-13 14:31:45 -0600 )edit

If you decide to go the rc.local route, you will need to also do systemctl enable rc-local.service.

ssieb gravatar imagessieb ( 2016-07-13 18:03:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-14 07:48:48 -0600

jorti gravatar image

The best way is to create a .service unit in /etc/systemd/system/

If you post the unit file and the messages it spits out when it fails, maybe we can help you.

edit flag offensive delete link more


Question Tools

1 follower


Asked: 2016-07-13 14:12:12 -0600

Seen: 534 times

Last updated: Jul 14 '16