PDA

View Full Version : Running a startup script in SLES12



viswamraju
11-Nov-2014, 14:39
Hi,

Recently installed SLES12. Planning to run a customized shell script as part of startup applications.

In SLES11 , We are able to achieve this task using control center ie wrote a shell script and launching the same using the Control center by adding into the startup Applications. But in SLES12, I was not able to found the control center and not able to add a custom script as a startup applications.

Please provide us the steps to achieve the same in SLES12.

Thanks in advance.

Regards,
Raghu.

ab
11-Nov-2014, 14:53
If this should run every time, how about setting up a service to run?
Another option I've seen used is the @reboot option within cron, so on
startup something is called from there.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...

viswamraju
12-Nov-2014, 13:37
http://linuxandfriends.com/how-to-add-startup-programs-in-gnome-3/

by following this link i'm able to launch a script at startup.

ab
12-Nov-2014, 14:30
Thank-you for sharing your find. Just to be clear, this looks like it
starts a program at login, not at startup, and thus as a (your) regular
user, not as a system service (often started initially by 'root').

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...