diff --git a/README.md b/README.md index 3c5e361..90723a5 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,19 @@ pip3 install --user --upgrade -r requirements.txt Need to get `cesium.key` from Cesium ION. +There are sample Apache configs in the `apache/` directory. + +There are systemd files with really bad PATHs in `systemd`. +Copy them here: `/etc/systemd/system/` + +Run: `sudo systemctl daemon-reload` + +Then run `systemctl start spacecruft-beidou` or whatever service +you want to start. + +You can see what ports it is listening on (from `net-tools` package) ala: +`netstat -pant | grep py` + # Scripts The following scripts are available for websites: diff --git a/systemd/spacecruft-beidou.service b/systemd/spacecruft-beidou.service new file mode 100644 index 0000000..5431384 --- /dev/null +++ b/systemd/spacecruft-beidou.service @@ -0,0 +1,16 @@ +[Unit] +Description=Spacecruft Beidou Earth +After=network-online.target +Wants=network-online.target + +[Service] +Environment="PYTHONUNBUFFERED=1" +ExecStart=python3 beidou-earth.py +WorkingDirectory=/home/jebba/devel/spacecruft/gnss-earth +User=jebba +Group=jebba +Restart=always + +[Install] +WantedBy=multi-user.target + diff --git a/systemd/spacecruft-galileo.service b/systemd/spacecruft-galileo.service new file mode 100644 index 0000000..5372646 --- /dev/null +++ b/systemd/spacecruft-galileo.service @@ -0,0 +1,16 @@ +[Unit] +Description=Spacecruft Galileo Earth +After=network-online.target +Wants=network-online.target + +[Service] +Environment="PYTHONUNBUFFERED=1" +ExecStart=python3 galileo-earth.py +WorkingDirectory=/home/jebba/devel/spacecruft/gnss-earth +User=jebba +Group=jebba +Restart=always + +[Install] +WantedBy=multi-user.target + diff --git a/systemd/spacecruft-glonass.service b/systemd/spacecruft-glonass.service new file mode 100644 index 0000000..d3e1580 --- /dev/null +++ b/systemd/spacecruft-glonass.service @@ -0,0 +1,16 @@ +[Unit] +Description=Spacecruft GLONASS Earth +After=network-online.target +Wants=network-online.target + +[Service] +Environment="PYTHONUNBUFFERED=1" +ExecStart=python3 glonass-earth.py +WorkingDirectory=/home/jebba/devel/spacecruft/gnss-earth +User=jebba +Group=jebba +Restart=always + +[Install] +WantedBy=multi-user.target + diff --git a/systemd/spacecruft-gnss.service b/systemd/spacecruft-gnss.service new file mode 100644 index 0000000..da51c6f --- /dev/null +++ b/systemd/spacecruft-gnss.service @@ -0,0 +1,16 @@ +[Unit] +Description=Spacecruft GNSS Earth +After=network-online.target +Wants=network-online.target + +[Service] +Environment="PYTHONUNBUFFERED=1" +ExecStart=python3 gnss-earth.py +WorkingDirectory=/home/jebba/devel/spacecruft/gnss-earth +User=jebba +Group=jebba +Restart=always + +[Install] +WantedBy=multi-user.target + diff --git a/systemd/spacecruft-gps.service b/systemd/spacecruft-gps.service new file mode 100644 index 0000000..700203a --- /dev/null +++ b/systemd/spacecruft-gps.service @@ -0,0 +1,16 @@ +[Unit] +Description=Spacecruft GPS Earth +After=network-online.target +Wants=network-online.target + +[Service] +Environment="PYTHONUNBUFFERED=1" +ExecStart=python3 gps-earth.py +WorkingDirectory=/home/jebba/devel/spacecruft/gnss-earth +User=jebba +Group=jebba +Restart=always + +[Install] +WantedBy=multi-user.target +