@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add example systemd unit for sshd in Diffusion docs

Summary:
The docs don't specify how to make the second sshd daemon start on every reboot.

I've added a unit that I use in my setup to the docs.

Ref T15467

Test Plan: Check that the docs look alright.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15467

Differential Revision: https://we.phorge.it/D25497

+26
+26
src/docs/user/userguide/diffusion_hosting.diviner
··· 585 585 Now you can move the Phorge `sshd` to port 22, then adjust the value 586 586 for `diffusion.ssh-port` in your Phorge configuration. 587 587 588 + You can set up and enable this systemd unit to start the second sshd 589 + daemon on every reboot: 590 + 591 + ``` 592 + name=/etc/systemd/system/phorge-ssh.service,lang=ini 593 + [Unit] 594 + Description=Phorge sshd 595 + Documentation=https://we.phorge.it/book/phorge/article/diffusion_hosting/#sshd-setup 596 + After=network.target auditd.service 597 + 598 + [Service] 599 + ExecStartPre=/usr/sbin/sshd -t -f /path/to/config_file.edited 600 + ExecStart=/usr/sbin/sshd -f /path/to/config_file.edited 601 + ExecReload=/usr/sbin/sshd -t -f /path/to/config_file.edited 602 + ExecReload=/bin/kill -HUP $MAINPID 603 + KillMode=process 604 + Restart=on-failure 605 + RestartPreventExitStatus=255 606 + Type=notify 607 + RuntimeDirectory=sshd 608 + RuntimeDirectoryMode=0755 609 + 610 + [Install] 611 + WantedBy=multi-user.target 612 + Alias=phorge-sshd.service 613 + ``` 588 614 589 615 No Direct Pushes 590 616 ================