Hi all,
I have added a new service which starts a second httpd instance in fedora 19. The pid of the process is stored in /run/http-palo directory, and my problem is that this directory disappears after each reboot.
How can I stop the system from deleting this folder in /run?
George
Am 12.08.2013 10:57, schrieb Georgios Petasis:
I have added a new service which starts a second httpd instance in fedora 19. The pid of the process is stored in /run/http-palo directory, and my problem is that this directory disappears after each reboot.
How can I stop the system from deleting this folder in /run?
/run is a tmpfs and lives in memory
man tmpfiles.d _____________________________________________
[root@rh:/etc/tmpfiles.d]$ cat named.conf d /var/run/named 0755 named named -
Στις 12/8/2013 12:07, ο/η Reindl Harald έγραψε:
Am 12.08.2013 10:57, schrieb Georgios Petasis:
I have added a new service which starts a second httpd instance in fedora 19. The pid of the process is stored in /run/http-palo directory, and my problem is that this directory disappears after each reboot.
How can I stop the system from deleting this folder in /run?
/run is a tmpfs and lives in memory
man tmpfiles.d _____________________________________________
[root@rh:/etc/tmpfiles.d]$ cat named.conf d /var/run/named 0755 named named -
Yes I know. But what creates the folders in there?
I have solved my problem by placing the pid file inside the httpd folder (with a different name). But what creates this /run/httpd folder on reboot?
For sure, it is not the httpd server (it would have created the /run/http-palo folder also).
George
Am 12.08.2013 11:14, schrieb Georgios Petasis:
Στις 12/8/2013 12:07, ο/η Reindl Harald έγραψε:
Am 12.08.2013 10:57, schrieb Georgios Petasis:
I have added a new service which starts a second httpd instance in fedora 19. The pid of the process is stored in /run/http-palo directory, and my problem is that this directory disappears after each reboot.
How can I stop the system from deleting this folder in /run?
/run is a tmpfs and lives in memory
man tmpfiles.d _____________________________________________
[root@rh:/etc/tmpfiles.d]$ cat named.conf d /var/run/named 0755 named named -
Yes I know. But what creates the folders in there?
did you read what i posted and what you quoted?
"/etc/tmpfiles.d/named.conf" creates the folder "/run/named" with permissions 0755 and owner/group "named"
i also pointed you to "man tmpfiles.d" so what more do you need? ___________________________________________
NAME tmpfiles.d - Configuration for creation, deletion and cleaning of volatile and temporary files
SYNOPSIS /etc/tmpfiles.d/*.conf
/run/tmpfiles.d/*.conf
/usr/lib/tmpfiles.d/*.conf
DESCRIPTION systemd-tmpfiles uses the configuration files from the above directories to describe the creation, cleaning and removal of volatile and temporary files and directories which usually reside in directories such as /run or /tmp.