[opensuse-factory] Tumbleweed: how to "enable" (run at boot) postgresql 9.4.4 service
Tumbleweed: how to "enable" (run at boot) PostgrwSQL 9.4.4 service when i run.... OpenSUSE-TW:~ # systemctl enable postgresql.service postgresql.service is not a native service, redirecting to systemd-sysv-install Executing /usr/lib/systemd/systemd-sysv-install enable postgresql Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory when i start postgresql, it works great..... OpenSUSE-TW:~ # service postgresql start OpenSUSE-TW:~ # systemctl status postgresql.service postgresql.service - LSB: Start the PostgreSQL master daemon Loaded: loaded (/etc/init.d/postgresql) Active: active (exited) since Sun 2015-10-11 09:49:08 CEST; 2s ago Docs: man:systemd-sysv-generator(8) Process: 3781 ExecStart=/etc/init.d/postgresql start (code=exited, status=0/SUCCESS) Oct 11 09:49:07 OpenSUSE-TW systemd[1]: Starting LSB: Start the PostgreSQL master daemon... Oct 11 09:49:07 OpenSUSE-TW su[3793]: (to postgres) root on none Oct 11 09:49:07 OpenSUSE-TW su[3793]: pam_unix(su-l:session): session opened for user postgres by (uid=0) Oct 11 09:49:07 OpenSUSE-TW su[3831]: (to postgres) root on none Oct 11 09:49:07 OpenSUSE-TW su[3831]: pam_unix(su-l:session): sessionopened for user postgres by (uid=0) Oct 11 09:49:08 OpenSUSE-TW systemd[1]: Started LSB: Start the PostgreSQL master daemon. Oct 11 09:49:08 OpenSUSE-TW postgresql[3781]: Starting PostgreSQL 9.4.4 ..done for other services there's no problem, so why postgresql can't be added/activated, i don't know.... tips are welcome... André -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
11.10.2015 11:31, André Verwijs пишет:
Tumbleweed: how to "enable" (run at boot) PostgrwSQL 9.4.4 service
when i run....
OpenSUSE-TW:~ # systemctl enable postgresql.service
postgresql.service is not a native service, redirecting to systemd-sysv-install Executing /usr/lib/systemd/systemd-sysv-install enable postgresql Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory
it is part of package systemd-sysvinit.
when i start postgresql, it works great.....
OpenSUSE-TW:~ # service postgresql start
OpenSUSE-TW:~ # systemctl status postgresql.service
postgresql.service - LSB: Start the PostgreSQL master daemon Loaded: loaded (/etc/init.d/postgresql) Active: active (exited) since Sun 2015-10-11 09:49:08 CEST; 2s ago Docs: man:systemd-sysv-generator(8)
Process: 3781 ExecStart=/etc/init.d/postgresql start (code=exited, status=0/SUCCESS) Oct 11 09:49:07 OpenSUSE-TW systemd[1]: Starting LSB: Start the PostgreSQL master daemon... Oct 11 09:49:07 OpenSUSE-TW su[3793]: (to postgres) root on none Oct 11 09:49:07 OpenSUSE-TW su[3793]: pam_unix(su-l:session): session opened for user postgres by (uid=0) Oct 11 09:49:07 OpenSUSE-TW su[3831]: (to postgres) root on none Oct 11 09:49:07 OpenSUSE-TW su[3831]: pam_unix(su-l:session): sessionopened for user postgres by (uid=0) Oct 11 09:49:08 OpenSUSE-TW systemd[1]: Started LSB: Start the PostgreSQL master daemon. Oct 11 09:49:08 OpenSUSE-TW postgresql[3781]: Starting PostgreSQL 9.4.4 ..done
for other services there's no problem, so why postgresql can't be added/activated, i don't know....
tips are welcome... André
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sun, Oct 11, 2015 at 11:37:49AM +0300, Andrei Borzenkov wrote:
11.10.2015 11:31, André Verwijs пишет:
Tumbleweed: how to "enable" (run at boot) PostgrwSQL 9.4.4 service
when i run....
OpenSUSE-TW:~ # systemctl enable postgresql.service
postgresql.service is not a native service, redirecting to systemd-sysv-install Executing /usr/lib/systemd/systemd-sysv-install enable postgresql Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory
it is part of package systemd-sysvinit.
Sorry for the late response, but I just found this thread from google. I seem to have hit a similar issue for plex media server, where both systemd .service and sysvinit scripts are included. When starting the service, the systemd .service file was used but when enabling the sysvinit script was attempted to be called with the same error as above. I don't seem to have systemd-sysv-install in my systemd-sysvinit package: # rpm -ql systemd-sysvinit /sbin/halt /sbin/init /sbin/poweroff /sbin/reboot /sbin/runlevel /sbin/shutdown /sbin/telinit /usr/share/man/man1/init.1.gz /usr/share/man/man8/halt.8.gz /usr/share/man/man8/poweroff.8.gz /usr/share/man/man8/reboot.8.gz /usr/share/man/man8/runlevel.8.gz /usr/share/man/man8/shutdown.8.gz /usr/share/man/man8/telinit.8.gz It turns out this isn't really an issue for me since my "solution" was to remove the sysvinit script since the packaged systemd service works as expeced. If anything, the fact that the sysvinit script was used over a systemd service of the same name when enabling (but not when starting) is a bug. -- Evan McClain
27.10.2015 06:44, Evan McClain пишет:
On Sun, Oct 11, 2015 at 11:37:49AM +0300, Andrei Borzenkov wrote:
11.10.2015 11:31, André Verwijs пишет:
Tumbleweed: how to "enable" (run at boot) PostgrwSQL 9.4.4 service
when i run....
OpenSUSE-TW:~ # systemctl enable postgresql.service
postgresql.service is not a native service, redirecting to systemd-sysv-install Executing /usr/lib/systemd/systemd-sysv-install enable postgresql Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory
it is part of package systemd-sysvinit.
Sorry for the late response, but I just found this thread from google.
I seem to have hit a similar issue for plex media server, where both systemd .service and sysvinit scripts are included. When starting the service, the systemd .service file was used but when enabling the sysvinit script was attempted to be called with the same error as above.
I don't seem to have systemd-sysv-install in my systemd-sysvinit package:
Indeed; it is in spec in Base:System but it apparently did not hit Factory/TW yet. https://bugzilla.opensuse.org/show_bug.cgi?id=948353
# rpm -ql systemd-sysvinit /sbin/halt /sbin/init /sbin/poweroff /sbin/reboot /sbin/runlevel /sbin/shutdown /sbin/telinit /usr/share/man/man1/init.1.gz /usr/share/man/man8/halt.8.gz /usr/share/man/man8/poweroff.8.gz /usr/share/man/man8/reboot.8.gz /usr/share/man/man8/runlevel.8.gz /usr/share/man/man8/shutdown.8.gz /usr/share/man/man8/telinit.8.gz
It turns out this isn't really an issue for me since my "solution" was to remove the sysvinit script since the packaged systemd service works as expeced. If anything, the fact that the sysvinit script was used over a systemd service of the same name when enabling (but not when starting) is a bug.
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
André Verwijs
-
Evan McClain