New to list -- install instructions not current?

Håkon Alstadheim hakon at alstadheim.priv.no
Sun Jun 28 14:12:18 CEST 2020


Den 28.06.2020 09:50, skrev Ralph Seichter:
> * Håkon Alstadheim:
>
>> I get as far as "contrib/flask.sh run" which I can not do, since there
>> is no relevant contrib/flask.sh in my installation directory.
> You are right. There is indeed a step missing in the documentation,
> namely downloading the content of the "contrib" directory, which
> contains utility scripts like flask.sh.
>
> I have opened https://gitlab.com/automx/automx2/-/issues/18 .
>
> -Ralph

Much obliged. Runs nicely, have not pointed any users at it yet though.

/usr/bin/automx-test from the old automx gives output that looks 
sensible to me,

better than the old automx at least.


For the record, here are some notes on my set-up (running on debian):

------------file /etc/init.d/automx2: ----

#! /bin/sh
### BEGIN INIT INFO
# Provides:          automx2
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: email auto config automx2
# Description:       see 
https://gitlab.com/automx/automx2/-/blob/master/doc/automx2.adoc
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON="/usr/local/sbin/automx2"
INTERPRETER="/var/wwwautomx2/venv/bin/python3"
HOME=~automx2
NAME="automx2"
DESC="automatic email client config"
USER="automx2"
PIDFILE="/var/run/automx2.pid"
test -x $DAEMON || exit 0

. /lib/lsb/init-functions
set -e

case "$1" in
   start)
         status_of_proc $DAEMON $INTERPRETER >/dev/null && exit 0
     log_daemon_msg "Starting $DESC" "$NAME"
     start-stop-daemon --start --exec "$INTERPRETER" --startas "$DAEMON" 
--chuid "$USER" --user "$USER" --chdir "$HOME" --background --no-close 
--pidfile "$PIDFILE" --make-pidfile < /dev/null > "/var/log/automx2.log" 
2>&1
     log_end_msg $?
     ;;
   stop)
     log_daemon_msg "Stopping $DESC" "$NAME"
     start-stop-daemon --stop --oknodo --exec "$INTERPRETER" --startas 
"$DAEMON" --user "$USER"  --pidfile "$PIDFILE" --remove-pidfile
     log_end_msg $?
     ;;
   restart|force-reload)
     $0 stop
     sleep 1
     $0 start
     ;;
   status)
     status_of_proc $DAEMON $INTERPRETER
     ;;
   *)
     echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2
     exit 1
     ;;
esac

exit 0
--- /usr/local/sbin/automx2 ends ---

# grep automx2 /etc/passwd
automx2:x:1026:1026::/var/wwwautomx2:/bin/bash



More information about the automx-users mailing list