LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-17-2005, 03:33 PM   #1
deverest
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Rep: Reputation: 0
cannot start cron; FIFO exists


i am running solaris 5.7 on X86 platform, when I try to start cron, I get the error:

cannot start cron; FIFO exists
CRON aborted

Any Ideas?
I am not getitng backups while cron is down.

Thanks
 
Old 02-17-2005, 03:48 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Have you checked cron isn't already running ?
 
Old 02-17-2005, 04:27 PM   #3
deverest
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
cron is running, but i receive the same error (cannot start cron; FIFO exists) when issuing the stop command.
 
Old 02-18-2005, 01:19 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What stop command ?
cron is designed to be started once and run "forever".
 
Old 02-18-2005, 04:42 AM   #5
deverest
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
I was runing /usr/sbin/crond stop

I igurd out the issue....i swapped out a box a week ago and a script in cron has been attempting to call this server every 30 min, the result, cron was busy calling a non-existent host and ignoring other tasks, such as my backups.

thanks for all the help.
 
Old 02-18-2005, 06:57 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
There's no /usr/sbin/crond command, I think you mean /usr/sbin/cron.
Anyway cron takes no argument (stop or other).
 
Old 02-18-2005, 07:12 AM   #7
deverest
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
good to know....so there is no way to restart cron after it has been started? can cron be killed using the pid?
 
Old 02-18-2005, 07:19 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
There's never a need to restart cron, as it is build to run forever and it has no bugs

If you need to have cron rereading its configuration files, use the contab command (e.g.: "crontab -e").
 
Old 02-18-2005, 07:27 AM   #9
deverest
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks.....that command (crontab -e) hangs, i need to coment out an entry but the display hangs and i end up killing the session...big problems
 
Old 02-18-2005, 08:29 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What do you mean by hangs ?
You should first read man pages and not blindly enter commands suggested by people you do not know ...

Well, I think your EDITOR variable is not set, so "crontab -e" brings you in the good old 'ed' editor which is not a user friendlyness model.

Try:
export EDITOR=vi
and start again.
 
Old 02-18-2005, 08:38 AM   #11
deverest
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Original Poster
Rep: Reputation: 0
when i type crontab -e, nothing comes up. on my other servers i am able to edit the cron file, but i get nothing here, just black screen, after a few moments , i need to ctrl c to get a command prompt back.



my default editor is already vi
 
Old 02-18-2005, 10:10 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Try
Code:
truss -f crontab -e
to see where it hangs
 
Old 10-10-2005, 07:17 AM   #13
(=AA=)
LQ Newbie
 
Registered: Dec 2002
Location: UK
Distribution: FreeBSD
Posts: 24

Rep: Reputation: 3
I am having the same problem.
Cron has for some reason stopped running.

crontab -l displays the cronjobs.
crontab -e causes it to hang.


Code:
# crontab -e                
1843

I then have to hit CTRL-D to exit and get the following message when I do.
"The crontab file was not changed."




weird ?
 
Old 10-10-2005, 07:28 AM   #14
(=AA=)
LQ Newbie
 
Registered: Dec 2002
Location: UK
Distribution: FreeBSD
Posts: 24

Rep: Reputation: 3
ok... truss -f just spat out a ton of info but nothing that means a whole lot to me ?


It ends like this

Code:
11387:  write(3, " v / n u l l   2 > & 1\0".., 512)     = 512
11387:  read(4, 0x0002B668, 2048)                       = 0
11387:  close(4)                                        = 0
1843
11387:  write(1, " 1 8 4 3\n", 5)                       = 5
11383:  waitid(P_PID, 11385, 0xFFBFF5D8, WEXITED|WTRAPPED|_WNOCHLD) (sleeping...)
11385:  waitid(P_PID, 11387, 0xFFBFFAF0, WEXITED|WTRAPPED|WNOWAIT) (sleeping...)
11387:  read(0, 0xFFBFFBF7, 1)          (sleeping...)
 
Old 10-10-2005, 10:49 AM   #15
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Read again my previous answers, there is no problem with your "crontab -e" output.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I start graphical applications via cron? p0ser Linux - Software 7 01-21-2005 02:44 PM
SIOCADDRT: File exists SIOCCADDRT: File Exists Failed to bring up eth0. opsraja Linux - Networking 0 01-10-2005 08:29 AM
FIFO using pointers AquamaN Programming 2 03-21-2004 05:51 PM
FIFO question gauge73 Linux - Newbie 1 02-28-2003 11:39 PM
Using cron to start a program at reboot ? s&j Linux - General 2 06-22-2002 04:31 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration