LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2017, 01:12 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Rep: Reputation: Disabled
daemontools cannot acquire a supervise lock


Just installed http://cr.yp.to/daemontools.html on a Raspberry Pi3. It seemed to go fine, but...

Upon executing sudo /command/svscan &, I get:

Code:
supervise: fatal: unable to acquire growfile/supervise/lock: temporary failure
Upon executing sudo sudo svc -h /service/growfile &, I get:

Code:
svc: warning: unable to control /service/growfile: supervise not running
Anyone know why?

PS. Anyone have any reasons not to use daemontools?
 
Old 06-06-2017, 02:05 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,631

Rep: Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525
looks like you can install it using apt (available in raspbian). I do not know how did you install that.
 
Old 06-06-2017, 03:20 PM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
looks like you can install it using apt (available in raspbian). I do not know how did you install that.
I compiled it per http://cr.yp.to/daemontools/install.html.

I will try using apt.

Thanks


Quote:
Create a /package directory: mkdir -p /package
chmod 1755 /package
cd /package

Download daemontools-0.76.tar.gz into /package. Unpack the daemontools package: gunzip daemontools-0.76.tar
tar -xpf daemontools-0.76.tar
rm -f daemontools-0.76.tar
cd admin/daemontools-0.76

Compile and set up the daemontools programs: package/install

On BSD systems, reboot to start svscan.
 
Old 06-06-2017, 05:51 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.4
Posts: 5,797

Rep: Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239
Quote:
Originally Posted by NotionCommotion View Post
Just installed http://cr.yp.to/daemontools.html on a Raspberry Pi3. It seemed to go fine, but...

Upon executing sudo /command/svscan &, I get:

Code:
supervise: fatal: unable to acquire growfile/supervise/lock: temporary failure
Upon executing sudo sudo svc -h /service/growfile &, I get:

Code:
svc: warning: unable to control /service/growfile: supervise not running
Anyone know why?

PS. Anyone have any reasons not to use daemontools?
What does
Code:
svstat /service/growfile
say?

Also, what are files/directories in /service/growfile ?

Last edited by scasey; 06-06-2017 at 07:26 PM.
 
Old 06-06-2017, 07:43 PM   #5
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
What does
Code:
svstat /service/growfile
say?
/service/growfile says /service/growfile: supervise not running.

Quote:
Originally Posted by scasey View Post
Also, what are files/directories in /service/growfile ?
Following per http://www.nightbluefruit.com/blog/2...s-daemontools/
Code:
#!/bin/sh

while :
do
echo “I am getting bigger…” > /tmp/bigfile.txt
sleep 1
done
 
Old 06-06-2017, 08:09 PM   #6
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
looks like you can install it using apt (available in raspbian). I do not know how did you install that.
To remove compiled version so I can install apt, just delete /package, /service, and /command?
 
Old 06-06-2017, 09:26 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.4
Posts: 5,797

Rep: Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239Reputation: 2239
Quote:
Originally Posted by NotionCommotion View Post
/service/growfile says /service/growfile: supervise not running.


Following per http://www.nightbluefruit.com/blog/2...s-daemontools/
Code:
#!/bin/sh

while :
do
echo “I am getting bigger…” > /tmp/bigfile.txt
sleep 1
done
...and that's in a file named run, right?
Code:
/service/growfile/run
and this is all true?
Quote:
To see this in action, run ps -ef and have a look at your process list. You will see

1. A process called svsscan, which is scanning the /service directory for new processes to monitor
2. A process called “supervise growfile”, which is keeping the job writing to the file alive
^^ no...that wouldn't be there if you can't start the service...sorry...
but you should see svcscan.

Another thought: What are the permissions and ownership on the /service/growfile/ directory?

Last edited by scasey; 06-07-2017 at 02:27 AM.
 
Old 06-07-2017, 01:14 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,631

Rep: Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525Reputation: 7525
Quote:
Originally Posted by NotionCommotion View Post
To remove compiled version so I can install apt, just delete /package, /service, and /command?
I do not know, I would first check the content. Probably yes.
 
Old 06-07-2017, 07:06 AM   #9
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
...and that's in a file named run, right?
Code:
/service/growfile/run
Yes
Quote:
Originally Posted by scasey View Post
and this is all true?

but you should see svcscan.
No, I did not see any.
Quote:
Originally Posted by scasey View Post
Another thought: What are the permissions and ownership on the /service/growfile/ directory?
Probably root, but don't know for sure. I've since deleted, and used apt, and all is working.

Thanks all!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
deian yum lock [ ERR] Reading state information E: Could not get lock /var/lock/aptit jayakumar01 Linux - Server 1 12-05-2011 11:26 AM
[SOLVED] supervise daemons ragask Linux - Server 3 11-20-2011 04:20 PM
develop a program to supervise performance of system(CPU & RAM) anhtu234 Linux - Newbie 2 03-17-2009 02:37 PM
qmail/daemontools - 'supervise' service shuts down randomly Kamineko Linux - Software 1 03-16-2009 03:03 AM
installing daemontools gokahd Linux - Software 1 11-28-2008 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:03 AM.

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