# Note, an alternative without systemd would be something like ts.
# Note, I tried using systemd-cat, but this seems obviously better,
# and that seemed to have a problem exiting during a systemctl daemon-reload
- local cmd_name ret jr_pid
+ local cmd_name ret jr_pid s
ret=0
cmd_name=${1##*/}
cmd=$1
# systemd-cat. i dont know any way to trap ctrl-c and still run the
# normal action for it. There might be a way, unsure.
jr_pid=$!
- systemd-run --unit "$cmd_name" --wait --collect "$cmd" "${@:2}" || ret=$
+ s systemd-run --unit "$cmd_name" --wait --collect "$cmd" "${@:2}" || ret=$?
# This justs lets the journal output its last line
# before the prompt comes up.
sleep .5
Pin: release n=focal,o=Ubuntu
Pin-Priority: 500
EOF
- seru enable psd
- seru sart psd
f=/etc/apt/sources.list.d/focal.list
t=$(mktemp)
pi ${pall[@]} $(apt-cache search ruby[.0-9]+-doc| awk '{print $1}') $($src/distro-pkgs)
+seru enable psd
+seru start psd
+
+
# website is dead june 14 2019. back in october, but meh
sudo rm -fv /etc/apt/sources.list.d/iridium-browser.list
# case $distro in
cat >>/etc/exim4/conf.d/main/000_local <<EOF
# recommended if dns is expected to work
CHECK_RCPT_VERIFY_SENDER = true
-# These seem like a good idea and have stoped spammers on my server
-CHECK_DATA_VERIFY_HEADER_SENDER = true
# default config comment says: If you enable this, you might reject legitimate mail,
# but eggs has had this a long time, so that seems unlikely.
CHECK_DATA_VERIFY_HEADER_SYNTAX = true
case $HOSTNAME in
$MAIL_HOST|bk|je)
# note: cronjob "ian" also does some important monitoring
+ # todo: this will sometimes cause an alert because mailtest-check will run
+ # before we have setup network namespace and spamassassin
cat >/etc/cron.d/mailtest <<EOF
SHELL=/bin/bash
PATH=/usr/bin:/bin:/usr/local/bin
# Root and postmaster mail recipient:
-exit 0
+m exit 0
:
# Local Variables:
m $new_shell /a/exe/primary-setup localhost
-exit 0
+m exit 0