Script not running at startup


Login or Register to Reply

 
Thread Tools Search this Thread
# 8  
Old 2 Days Ago
Maybe,but its not open on my system..

--- Post updated at 03:18 AM ---

And when I execute only in terminal its ok.
Why dont enable it when put it to script.
# 9  
Old 2 Days Ago
well because when you run a script in batch mode e.g. using cron or init you are using utilities with minimalist intelligence e.g. like PATH=/bin:/usr/bin
In other words when you log in you have access to an environment, which is unknown in batch mode
The most important when it works in interactive and not in batch is to start with PATH variable:
put in your script at the beginning the path you have when you type env
If that doesnt work source your .profile or whatever you use as first line of your script knowing that it will generate loads of errors because not in interactive mode ( all things to do with stty to start with...) and see if that works, if so you are to search what in your env is needed to get your script to work...
Good luck
# 10  
Old 1 Day Ago
For learning how to configure and manage services with systemd look at the documentation, for example here:

manpages

And here a more tutorial styled website:

Understanding and Using Systemd | Linux.com | The source for Linux information

--- Post updated at 12:49 PM ---

Quote:
And when I execute only in terminal its ok.
Why dont enable it when put it to script.
Maybe the program needs a terminal and it is not configured to have one in the service file?
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Startup script Huitzilopochtli Shell Programming and Scripting 3 08-19-2016 04:43 PM
Apache tomcat startup script not booting at startup. Hijanoqu Shell Programming and Scripting 14 01-24-2014 06:33 AM
Startup and shutdown script frum Shell Programming and Scripting 5 07-06-2013 02:49 PM
Perl cisco copy running to startup IvanMP Shell Programming and Scripting 0 03-28-2013 08:11 AM
running my own script during startup programAngel Red Hat 4 07-06-2011 10:43 AM
startup script samsungsamsung AIX 2 02-01-2011 09:31 AM
running fsck on aix in startup manoj.solaris AIX 1 01-13-2011 04:22 PM
how to put script in startup xxmasrawy Solaris 3 05-02-2010 05:07 PM
Startup Script Somewhere ? fbauto1 UNIX for Dummies Questions & Answers 0 03-07-2010 08:10 PM
Startup script and services ITHelper AIX 8 11-18-2009 05:00 PM
stop solaris 8 sendmail from running on startup itik Solaris 3 12-04-2008 02:57 PM
Executing a script at startup sridharr83 HP-UX 4 12-21-2007 05:07 AM
Running a Cron Script only @ Startup Pls Help!! perk_bud Shell Programming and Scripting 3 07-17-2007 07:29 AM
Startup script texaspanama Shell Programming and Scripting 2 06-29-2006 04:08 PM