Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gnthibault committed Jul 28, 2023
1 parent f253725 commit 1306203
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
17 changes: 17 additions & 0 deletions infrastructure/indiwebmanager.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Unit]
Description=INDI Web Manager
After=multi-user.target

[Service]
Type=idle
# MUST SET YOUR USERNAME HERE.
User=gnthibault
Environment=LD_LIBRARY_PATH=/usr/local/lib:/usr/lib
ExecStart=/home/gnthibault/.local/bin/indi-web -v --xmldir /home/gnthibault/projects/RemoteObservatory/conf_files/indi_driver_xml --conf /home/gnthibault/projects/RemoteObservatory/conf_files/indi_driver_conf

Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

28 changes: 28 additions & 0 deletions infrastructure/phd2.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[Unit]
# Should be put in /etc/systemd/system/
# Then run
# sudo systemctl daemon-reload
# sudo systemctl restart phd2.service
# sudo systemctl status phd2.service

# xrdp trick: https://askubuntu.com/a/1271772 (select relax order checks and Glyph cache)

Description=PHD2 Autoguiding server
# After=graphical.target
After=multi-user.target

[Service]
Type=idle
User=gnthibault
Environment=LD_LIBRARY_PATH=/usr/local/lib:/usr/lib
Environment="DISPLAY=:0"
# "XAUTHORITY=/home/gnthibault/.Xauthority"
ExecStartPre=rm -f /home/gnthibault/phd2.1
ExecStart=/usr/bin/phd2
Restart=always
RestartSec=3

[Install]
# WantedBy=graphical.target
WantedBy=multi-user.target

0 comments on commit 1306203

Please sign in to comment.