diff --git a/sessioncommunities.service b/sessioncommunities.service new file mode 100644 index 0000000..4ee49e6 --- /dev/null +++ b/sessioncommunities.service @@ -0,0 +1,7 @@ +# /etc/systemd/system/sessioncommunities.service +[Unit] +Description=Scrape every known source for Session Communities and put the data to a NGINX accessible folder + +[Service] +User=session +ExecStart=/usr/bin/php get_online_session_communities.php diff --git a/sessioncommunities.timer b/sessioncommunities.timer new file mode 100644 index 0000000..4b4f6e3 --- /dev/null +++ b/sessioncommunities.timer @@ -0,0 +1,13 @@ +# /etc/systemd/system/sessioncommunities.timer +[Unit] +Description=Run get_online_session_communitites.php periodically + +[Timer] +OnBootSec=10min +OnUnitInactiveSec=45min +Persistent=true +User=session +Unit=sessioncommunities.service + +[Install] +WantedBy=timers.target