diff --git a/builds/install/arch-specific/linux/firebird-classic.service.in b/builds/install/arch-specific/linux/firebird-classic.service.in deleted file mode 100644 index aad7ae103a..0000000000 --- a/builds/install/arch-specific/linux/firebird-classic.service.in +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Firebird Database Server ( Classic ) -After=local-fs.target - -[Service] -User=firebird -Group=firebird -ExecStart=@FB_SBINDIR@/firebird -StandardInput=socket -StandardError=syslog diff --git a/builds/install/arch-specific/linux/firebird-classic.socket.in b/builds/install/arch-specific/linux/firebird-classic.socket.in deleted file mode 100644 index 6ce30741a5..0000000000 --- a/builds/install/arch-specific/linux/firebird-classic.socket.in +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Firebird Classic Activation Socket -Conflicts=firebird-superserver.service - -[Socket] -ListenStream=3050 -Accept=true -MaxConnections=2048 - -[Install] -WantedBy=sockets.target diff --git a/builds/install/arch-specific/linux/firebird.init.d.slackware.in b/builds/install/arch-specific/linux/firebird.init.d.slackware.in index a75a431670..328a91b4ad 100644 --- a/builds/install/arch-specific/linux/firebird.init.d.slackware.in +++ b/builds/install/arch-specific/linux/firebird.init.d.slackware.in @@ -2,7 +2,7 @@ # # /etc/rc.d/rc.firebirdss # -# Start/stop/restart the firebird super server. +# Start/stop/restart the firebird server. # fb_install_prefix=@prefix@ diff --git a/builds/install/arch-specific/linux/firebird.init.d.suse.in b/builds/install/arch-specific/linux/firebird.init.d.suse.in index 11eb6da47d..d8e2ea2046 100644 --- a/builds/install/arch-specific/linux/firebird.init.d.suse.in +++ b/builds/install/arch-specific/linux/firebird.init.d.suse.in @@ -9,7 +9,7 @@ # # /usr/sbin/rcfirebird # -# System startup script for the Firebird SuperServer +# System startup script for the Firebird Server # ### BEGIN INIT INFO # Provides: firebird diff --git a/builds/install/arch-specific/linux/firebird-superserver.service.in b/builds/install/arch-specific/linux/firebird.service.in similarity index 76% rename from builds/install/arch-specific/linux/firebird-superserver.service.in rename to builds/install/arch-specific/linux/firebird.service.in index a13b092c41..6abaf76dab 100644 --- a/builds/install/arch-specific/linux/firebird-superserver.service.in +++ b/builds/install/arch-specific/linux/firebird.service.in @@ -1,7 +1,6 @@ [Unit] -Description=Firebird Database Server ( SuperServer ) +Description=Firebird Database Server After=syslog.target network.target -Conflicts=firebird-classic.socket [Service] User=firebird diff --git a/builds/install/arch-specific/linux/firebird.xinetd.in b/builds/install/arch-specific/linux/firebird.xinetd.in deleted file mode 100644 index 93555709d7..0000000000 --- a/builds/install/arch-specific/linux/firebird.xinetd.in +++ /dev/null @@ -1,17 +0,0 @@ -# default: on -# description: FirebirdSQL server -# - -service @FB_SERVICE_NAME@ -{ - disable = no - flags = REUSE - socket_type = stream - wait = no - user = root -# These lines cause problems with Windows XP SP2 clients -# using default firewall configuration (SF#1065511) -# log_on_success += USERID -# log_on_failure += USERID - server = @FB_SBINDIR@/firebird -} diff --git a/builds/install/arch-specific/linux/linuxLibrary.sh.in b/builds/install/arch-specific/linux/linuxLibrary.sh.in index f6eb020730..82a0f25821 100644 --- a/builds/install/arch-specific/linux/linuxLibrary.sh.in +++ b/builds/install/arch-specific/linux/linuxLibrary.sh.in @@ -111,8 +111,7 @@ getInitScriptLocation() { # register/start/stop server using systemd SYSTEMCTL=systemctl -CLASSIC_CTRL=${fb_startup_name}-classic.socket -SUPER_CTRL=${fb_startup_name}-superserver.service +CTRL=${fb_startup_name}.service SYSTEMD_DIR=/usr/lib/systemd/system [ -d $SYSTEMD_DIR ] || SYSTEMD_DIR=/lib/systemd/system TMPFILE_CONF=/usr/lib/tmpfiles.d/firebird.conf @@ -140,13 +139,9 @@ installSystemdCtrlFiles() { exit 1 fi - editFile "@FB_MISCDIR@/firebird-superserver.service" ExecStart "ExecStart=${fb_install_prefix}/bin/fbguard -pidfile $PidDir/${fb_startup_name}.pid -daemon -forever" - editFile "@FB_MISCDIR@/firebird-superserver.service" PIDFile "PIDFile=$PidDir/${fb_startup_name}.pid" - editFile "@FB_MISCDIR@/firebird-classic@.service" ExecStart "ExecStart=${fb_install_prefix}/bin/firebird" - - cp @FB_MISCDIR@/firebird-superserver.service "${SYSTEMD_DIR}/${fb_startup_name}-superserver.service" - cp @FB_MISCDIR@/firebird-classic@.service "${SYSTEMD_DIR}/${fb_startup_name}-classic@.service" - cp @FB_MISCDIR@/firebird-classic.socket "${SYSTEMD_DIR}/${fb_startup_name}-classic.socket" + editFile "@FB_MISCDIR@/firebird.service" ExecStart "ExecStart=${fb_install_prefix}/bin/fbguard -pidfile $PidDir/${fb_startup_name}.pid -daemon -forever" + editFile "@FB_MISCDIR@/firebird.service" PIDFile "PIDFile=$PidDir/${fb_startup_name}.pid" + cp @FB_MISCDIR@/firebird.service "${SYSTEMD_DIR}/${fb_startup_name}.service" mkdir -p ${PidDir} chown $RunUser:$RunGroup ${PidDir} @@ -156,7 +151,7 @@ installSystemdCtrlFiles() { } osRemoveStartupFiles() { - rm -f ${SYSTEMD_DIR}/${fb_startup_name}-* + rm -f ${SYSTEMD_DIR}/${fb_startup_name}.* rm -f ${TMPFILE_CONF} } @@ -180,33 +175,10 @@ systemdSrv() { return 1 } -classicSrv() { - op=${1} - - systemdSrv ${op} ${CLASSIC_CTRL} -} - superSrv() { op=${1} - systemdSrv ${op} ${SUPER_CTRL} -} - -osRegisterClassicServer() { - installSystemdCtrlFiles - classicSrv enable -} - -osUnregisterClassicServer() { - classicSrv disable -} - -osStartClassicServer() { - classicSrv start -} - -osStopClassicServer() { - classicSrv stop + systemdSrv ${op} ${CTRL} } registerSuperServer() { @@ -236,9 +208,6 @@ stopSuperServer() { } -# Additional OS settings -systemdPresent && OS_Has_Specific_Classic_Startup=yes - #------------------------------------------------------------------------ # stop super server if it is running @@ -493,7 +462,7 @@ removeServiceAutostart() { standaloneServerInstalled() { if systemdPresent; then - ${SYSTEMCTL} --quiet is-enabled ${SUPER_CTRL} && return 0 + ${SYSTEMCTL} --quiet is-enabled ${CTRL} && return 0 return 1 fi diff --git a/builds/install/arch-specific/linux/makeInstallImage.sh.in b/builds/install/arch-specific/linux/makeInstallImage.sh.in index 0cf0fbe504..d6a8a840aa 100644 --- a/builds/install/arch-specific/linux/makeInstallImage.sh.in +++ b/builds/install/arch-specific/linux/makeInstallImage.sh.in @@ -285,10 +285,9 @@ copyFiles() { #misc cp $BuildRootDir/src/misc/intl.sql ${TargetDir}@FB_MISCDIR@ cp $BuildRootDir/src/misc/upgrade/v3.0/security_database* ${TargetDir}@FB_MISCDIR@/upgrade/security - cp $BuildRootDir/gen/install/misc/firebird.xinetd ${TargetDir}@FB_MISCDIR@ cp $BuildRootDir/gen/install/misc/firebird.init.d.* ${TargetDir}@FB_MISCDIR@ cp $BuildRootDir/gen/install/misc/rc.config.firebird ${TargetDir}@FB_MISCDIR@ - cp $BuildRootDir/gen/install/misc/firebird-* ${TargetDir}@FB_MISCDIR@ + cp $BuildRootDir/gen/install/misc/firebird.service ${TargetDir}@FB_MISCDIR@ chmod -R go-rwx ${TargetDir}@FB_MISCDIR@ diff --git a/builds/install/posix-common/FirebirdUninstall.sh.in b/builds/install/posix-common/FirebirdUninstall.sh.in index 98c3ce15ca..ad3ae94151 100644 --- a/builds/install/posix-common/FirebirdUninstall.sh.in +++ b/builds/install/posix-common/FirebirdUninstall.sh.in @@ -69,7 +69,6 @@ done removeLinksForBackCompatibility removeServiceAutostart -removeInetdServiceEntry if [ -d $PidDir ] then @@ -82,9 +81,4 @@ removeInstalledFiles # Remove installed files removeUninstallFiles # Remove the 'uninstall' utility files removeEmptyDirs # Remove empty directories -if [ "$OS_Has_Specific_Classic_Startup" ] -then - osRemoveStartupFiles -fi - displayMessage "Uninstall completed" diff --git a/builds/install/posix-common/changeServerMode.sh.in b/builds/install/posix-common/changeServerMode.sh.in index d9475ea08e..e0383d8837 100644 --- a/builds/install/posix-common/changeServerMode.sh.in +++ b/builds/install/posix-common/changeServerMode.sh.in @@ -27,6 +27,11 @@ cat </dev/null]) ;;