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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-06-2017, 01:12 PM
|
#1
|
Member
Registered: Aug 2012
Posts: 789
Rep:
|
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?
|
|
|
06-06-2017, 02:05 PM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,631
|
looks like you can install it using apt (available in raspbian). I do not know how did you install that.
|
|
|
06-06-2017, 03:20 PM
|
#3
|
Member
Registered: Aug 2012
Posts: 789
Original Poster
Rep:
|
Quote:
Originally Posted by pan64
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.
|
|
|
|
06-06-2017, 05:51 PM
|
#4
|
LQ Veteran
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.4
Posts: 5,797
|
Quote:
Originally Posted by NotionCommotion
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.
|
|
|
06-06-2017, 07:43 PM
|
#5
|
Member
Registered: Aug 2012
Posts: 789
Original Poster
Rep:
|
Quote:
Originally Posted by scasey
What does
Code:
svstat /service/growfile
say?
|
/service/growfile says /service/growfile: supervise not running.
Quote:
Originally Posted by scasey
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
|
|
|
06-06-2017, 08:09 PM
|
#6
|
Member
Registered: Aug 2012
Posts: 789
Original Poster
Rep:
|
Quote:
Originally Posted by pan64
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?
|
|
|
06-06-2017, 09:26 PM
|
#7
|
LQ Veteran
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.4
Posts: 5,797
|
Quote:
Originally Posted by NotionCommotion
|
...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.
|
|
|
06-07-2017, 01:14 AM
|
#8
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,631
|
Quote:
Originally Posted by NotionCommotion
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.
|
|
|
06-07-2017, 07:06 AM
|
#9
|
Member
Registered: Aug 2012
Posts: 789
Original Poster
Rep:
|
Quote:
Originally Posted by scasey
...and that's in a file named run, right?
Code:
/service/growfile/run
|
Yes
Quote:
Originally Posted by scasey
and this is all true?
but you should see svcscan.
|
No, I did not see any.
Quote:
Originally Posted by scasey
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!
|
|
|
All times are GMT -5. The time now is 07:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|