diff --git a/Makefile b/Makefile index be1599a..16dad41 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,8 @@ install: mkdir -p -m 0755 ${DESTDIR}${SYSTEMDSYSTEMDIR} install -m 0644 mxstartup-mxvip.service ${DESTDIR}${SYSTEMDSYSTEMDIR} install -m 0644 mxstartup-classic.service ${DESTDIR}${SYSTEMDSYSTEMDIR} - install -m 0644 mxstartup-systemd.service ${DESTDIR}${SYSTEMDSYSTEMDIR} mkdir -p -m 0755 ${DESTDIR}${SBINDIR} install -m 0755 mxstartup2mxconfig ${DESTDIR}${SBINDIR} install -m 0755 mxvipctl ${DESTDIR}${SBINDIR} install -m 0755 mxservicectl ${DESTDIR}${SBINDIR} install -m 0755 mxstartupctl ${DESTDIR}${SBINDIR} - install -m 0755 mxstartup.systemd ${DESTDIR}${SBINDIR} diff --git a/mxstartup-systemd.service b/mxstartup-systemd.service deleted file mode 100644 index f5fcec8..0000000 --- a/mxstartup-systemd.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Mariux mxstartup systemd -After=mxstartup-mxvip.service mxmount.service -Requires=mxstartup-mxvip.service mxmount.service - -[Service] -Type=oneshot -ExecStart=/usr/sbin/mxstartup.systemd start -ExecStop=/usr/sbin/mxstartup.systemd stop -RemainAfterExit=yes -StandardOutput=syslog - -[Install] -WantedBy=multi-user.target diff --git a/mxstartup.systemd b/mxstartup.systemd deleted file mode 100755 index e482de7..0000000 --- a/mxstartup.systemd +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -#set -x - -dnsdomain=molgen.mpg.de -systemdsystemdir=/etc/systemd/system -mxstartupprefix=mxstartup -unittype=.service - -hostname=$(uname -n) -shorthostname=${hostname%\.${dnsdomain}} - -searchunits=${systemdsystemdir}/${mxstartupprefix}-${shorthostname}-*${unittype} - -units= - - -shopt -s nullglob - -for i in ${searchunits} ; do - units="${units+${units} }${i##*/}" -done - - -if [ -z "${units}" ] ; then - echo >&2 "mxstartup: nothing to start on host '${shorthostname}'" - exit 0 -fi - - - -cmd=status - -if [ "${1}" = "start" -o "${1}" = "stop" ] ; then - cmd=${1} -fi - -exec systemctl ${cmd} ${units} -