Startskript für Debian

  • Update: Der svxlink-Installationsprozess legt /lib/system/systemd/svxlink.service an, man kann den Dienst also "out of the box" mit "systemctl start svxlink.service" starten ;)

    73 und schönen Dienstag

    Bernd, OE7BSH

  • Update: Der svxlink-Installationsprozess legt /lib/system/systemd/svxlink.service an, man kann den Dienst also "out of the box" mit "systemctl start svxlink.service" starten ;)

    73 und schönen Dienstag

    Bernd, OE7BSH

    Hi,

    ja leider wird dann kein Log mehr unter /var/log/svxlink.log geschrieben :(

    73 de Andreas

  • Hallo Andreas,

    Hi,

    ja leider wird dann kein Log mehr unter /var/log/svxlink.log geschrieben :(

    73 de Andreas

    kann ich nicht bestätigen:

    pi@svxhat2:~ $ tail -f /var/log/svxlink

    Mon May 31 14:43:52 2021: Tx1: Turning the transmitter OFF

    Mon May 31 14:43:52 2021: Tx1: Turning the transmitter ON

    (wobei bei dir oben noch .log dabei steht)

    73

    Bernd, OE7BSH

  • Hi Bernd,

    ja bei mir in der Konfig steht halt /var/log/svxlink.log als Logfile ;)

    Was hast Du den in der passenden systemctl-Datei drin?

    73 de Andreas

  • Hi Andreas,

    Was hast Du den in der passenden systemctl-Datei drin?

    73 de Andreas

    root@svxhat2:/lib/systemd/system# cat svxlink.service

    ---schnipp---

    [Unit]

    Description=SvxLink repeater control software

    Documentation=man:svxlink(1)

    Requires=svxlink_gpio_setup.service

    After=network.target remote-fs.target syslog.target time.target

    After=svxlink_gpio_setup.service

    [Service]

    EnvironmentFile=/etc/default/svxlink

    PIDFile=${PIDFILE}

    ExecStartPre=-/bin/touch ${LOGFILE}

    ExecStartPre=-/bin/chown ${RUNASUSER} ${LOGFILE}

    ExecStart=/usr/bin/svxlink --logfile=${LOGFILE} --config=${CFGFILE} --pidfile=${PIDFILE} --runasuser=${RUNASUSER}

    ExecReload=/bin/kill -s HUP $MAINPID

    Restart=on-failure

    TimeoutStartSec=60

    TimeoutStopSec=10

    #WatchdogSec=

    #NotifyAccess=main

    LimitCORE=infinity

    WorkingDirectory=/etc/svxlink

    ---schnipp---

    und

    root@svxhat2:/lib/systemd/system# cat /etc/default/svxlink

    ---schnipp---

    #############################################################################

    #

    # Configuration file for the SvxLink Systemd unit file

    #

    #############################################################################

    # The user to run the SvxLink server as

    RUNASUSER=svxlink

    # Specify which configuration file to use

    CFGFILE=/etc/svxlink/svxlink.conf

    # Where to place the log file

    LOGFILE=/var/log/svxlink

    # Where to place the PID file

    PIDFILE=/run/svxlink.pid

    # Disable Alsa zerofill if set to 0 (see manual page)

    #ASYNC_AUDIO_ALSA_ZEROFILL=1

    ---schnipp---

    Vgl. auch https://svxlink.de/startskripte/

    HTH & 73 aus den Tiroler Bergen

    Bernd, OE7BSH