Date: Fri, 31 Aug 2018 09:22:04 +0200 From: Ole <ole@free.de> To: freebsd-questions@freebsd.org Subject: daemon fails on startup because pid file does not exist Message-ID: <20180831092204.77f5188f.ole@free.de>
next in thread | raw e-mail | index | archive | help
--Sig_/=vv2ZNokOsqG2vAIYFcKU8F Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, I use databases/postgresql-repmgr for database replication. Now the daemon won't start if the pid file /var/run/repmgrd.pid does not exists. so before start i have to run touch /var/run/repmgrd.pid chown postgres:postgres /var/run/repmgrd.pid Is this a problem of the daemon process, of the init script or of my setup? The init-script is below. thanks=20 Ole #!/bin/sh # $FreeBSD: head/databases/postgresql-repmgr/files/repmgrd.in 458407 2018-0= 1-08 12:55:59Z bofh $ # # PROVIDE: repmgrd # REQUIRE: postgresql # KEYWORD: shutdown # # Add these lines to /etc/rc.conf.local or /etc/rc.conf to enable this # service: # # repmgrd_enable (bool): Set to YES to enable repmgrd. Default: NO # # repmgrd_config (path): Default: /usr/local/etc/repmgr.conf # . /etc/rc.subr name=3Drepmgrd rcvar=3Drepmgrd_enable load_rc_config $name : ${repmgrd_enable:=3D"NO"} : ${repmgrd_user:=3D"pgsql"} : ${repmgrd_config=3D"/usr/local/etc/repmgr.conf"} command=3D/usr/local/bin/${name} pidfile=3D/var/run/${name}.pid command_args=3D"-m -d -p $pidfile -f $repmgrd_config" run_rc_command "$1" --Sig_/=vv2ZNokOsqG2vAIYFcKU8F Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJbiOyfAAoJECWWkUao5JRQSLcP/3U0jWy03YB2kl3cyymwmdPU 6KLqiw0xpdyD8SY6KCnnrChIcYDeFBH9kXZk8kS9/KSXuosOYQaI+DFkKCRXojG8 urFkTR9zDqDHg8jgvWoV8iuu3ttmH3uzUN6SYxA5RjO6PeKUGBDNF8aNxBlh/USf /LvnED9VwblfU5lN0QuUtRFhuMMqfiNdfAW32B/ZCU7f56LvFz6oBlaAmaTawFyN df0Q+n58S/6jSVF3nLFkY0OUm9+nV+beEET2PIBkDAIBYWqSSqgQ0DqWzVXinAcr eMrXvatf/3jiG2XVftGfVB+WF4ujOmkrzlfjkf5wo6BCfDF68Kt5vG41wLoYW+n5 Y3iG0jfbbEMTrktyXY4Orkpv5NkfnJfkvWjIDTDG2spf7wq87Sf1Pon/rnZL3cE5 gpik3mcHkVJoR1sWw4y9upbW+wG0e11gkodExXaIED+xRj0WF8Py+kSRm0PTRI2/ gJrCteAm3Al8AigJrzlcvFAazHeyH53KAZu0tYMyZl7jpU9A/7d3CJrMF5ARSdND 6+N3YX0/6JmtCWMVgWXM5AgzcNIFMf5MuQEHNgF7289FQ8R3DYgD3mZKDVs/BEtS dw8Vmgj5G//fbDVrDhQabhwD2W0RHBtK/kHRraF60FyKHD/ZV3nYxGHQtzCg+Fjx uDTc1ga4Xi8WUnWx2Zg0 =KKOU -----END PGP SIGNATURE----- --Sig_/=vv2ZNokOsqG2vAIYFcKU8F--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180831092204.77f5188f.ole>