[Ubuntu] Disable Network Wait Online

Edtie service file.

/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service, add “–timeout=5” for the following line:

1
ExecStart=/lib/systemd/systemd-networkd-wait-online –timeout=5

OR

Apply both in order:

1
2
sudo systemctl disable systemd-networkd-wait-online.service
sudo systemctl mask systemd-networkd-wait-online.service

Then reboot and check.

Gitlab SMTP

迁移过 gitlab 以后发现 Outlook 的 SMTP 好像失效了,按照文档配置的步骤,通过 rail console 检查一下:

1
2
3
4
5
# 启用 rail console
gitlab-rails console

# 加载完成测试邮件发送
Notify.test_email('xx@outlook.com', 'Message Subject', 'Message Body').deliver_now

Read More

探窗

她唱着他乡遇故知

一步一句是相思

台下人金榜正提名

不曾认台上旧相识

他说着洞房花烛时

众人贺佳人配才子

未听一句一叹戏里有情痴