LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-15-2012, 11:30 PM   #1
funny_sailor
LQ Newbie
 
Registered: Oct 2011
Posts: 7

Rep: Reputation: Disabled
[systemd][daemonize][fedora] Can't create lock file


Hi everyone!
Distr: Fedora 16

Try to add my own service in systemd.
First I am created file /lib/systemd/sname.service

Code:
[Unit]
Description=Info about Server

[Service]
PIDFile=/var/run/sfolder/sname.pid
ExecStartPre=-/usr/libexec/sfolder-functions sname
ExecStartPre=/bin/env TZ= LD_BIND_NOW=
ExecStart=/usr/sbin/daemonize -u user1 -c /tmp -e /var/log/sfolder/sname.err -o /var/log/sfolder/sname.out -p /var/run/sfodler/sname.pid -l /var/run/sfolder/sname.pid /bin/env TZ= LD_BIND_NOW=  /usr/sbin/sname --config-file=/etc/sfolder/config-sname.xml
Type=forking
User=root
Group=root

[Install]
WantedBy=multi-user.target
потом сделал systemctl enable sname.service .
Service doesn't start and in /var/log/messages:
Code:
daemonize[685]: Can't create lock file "/var/run/sfolder/sname.pid":No such file or directory
If I create fodler /var/run/sfodler then "systemctl start sname.service" work and service start.
After reboot "/var/run/sfolder" remove and service doesn't autostart.
Why "/var/run/sfolder" dosn't autocreate?

user "user1" in group "wheel".

Thanks for any help!
 
Old 01-16-2012, 06:41 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
See 'man tmpfiles.d' - the var run files are now kept in RAM and are recreated by a systemd process.
 
  


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
APCUPSD - Unable to create UPS lock file sirpimpsalot Linux - Software 7 03-14-2017 09:46 PM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM
Fedora 8 and NoMachine "Could not create lock file in /tmp/.tX1002-lock" ln3wb13 Linux - Software 3 05-17-2008 01:31 PM
unable to create modem lock file sarrab20 Fedora 3 10-28-2006 05:02 AM
can't create lock file? Class Zero Linux - Newbie 3 01-30-2002 05:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:00 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