From eb04685ad152984c5903c94d5f33f5296cf6e277 Mon Sep 17 00:00:00 2001 From: Georg Date: Wed, 21 Jul 2021 13:04:22 +0200 Subject: Initial Systemd Service Run: 3/3 Signed-off-by: Georg --- systemd/beauties.service | 14 ++++++++++++++ systemd/confluence.service | 19 ------------------- systemd/confluence_psyched.service | 19 +++++++++++++++++++ systemd/confluence_tripsit.service | 18 ++++++++++++++++++ systemd/cytube.service | 15 +++++++++++++++ systemd/jira_tripsit.service | 19 +++++++++++++++++++ systemd/mailcow.service | 14 ++++++++++++++ systemd/matterbridge_libertacasa_irc.service | 14 ++++++++++++++ systemd/matterbridge_libertacasa_multiproto.service | 14 ++++++++++++++ systemd/matterbridge_tripsit.service | 14 ++++++++++++++ 10 files changed, 141 insertions(+), 19 deletions(-) create mode 100644 systemd/beauties.service delete mode 100644 systemd/confluence.service create mode 100644 systemd/confluence_psyched.service create mode 100644 systemd/confluence_tripsit.service create mode 100644 systemd/cytube.service create mode 100644 systemd/jira_tripsit.service create mode 100644 systemd/mailcow.service create mode 100644 systemd/matterbridge_libertacasa_irc.service create mode 100644 systemd/matterbridge_libertacasa_multiproto.service create mode 100644 systemd/matterbridge_tripsit.service (limited to 'systemd') diff --git a/systemd/beauties.service b/systemd/beauties.service new file mode 100644 index 0000000..b694a7d --- /dev/null +++ b/systemd/beauties.service @@ -0,0 +1,14 @@ +[Unit] +Description=Beauties File Server +After=network.target + +[Service] +Type=simple +User=beauties +Group=beauties +WorkingDirectory=/opt/beauties +Restart=always +ExecStart=/opt/beauties/beauties -b 192.168.0.120:8922 -d hugz.io -l /var/log/beauties/beauties -s /opt/beauties/data/storage -t /tmp/beauties + +[Install] +WantedBy=multi-user.target diff --git a/systemd/confluence.service b/systemd/confluence.service deleted file mode 100644 index 9a479e2..0000000 --- a/systemd/confluence.service +++ /dev/null @@ -1,19 +0,0 @@ -[Unit] -Description = Confluence Server -After=syslog.target network.target - -[Service] -Type=forking -#Environment=CONFLUENCE_HOME=/opt/atlassian/homes/confluence -Environment=JAVA_HOME=/opt/jdk -PermissionsStartOnly=true -User=confluence -Group=atlassian -ExecStart=/opt/confluence/bin/startup.sh -ExecStop=/opt/confluence/bin/shutdown.sh -TimeoutStartSec=120 -TimeoutStopSec=600 -PrivateTmp=true - -[Install] -WantedBy = multi-user.target diff --git a/systemd/confluence_psyched.service b/systemd/confluence_psyched.service new file mode 100644 index 0000000..9a479e2 --- /dev/null +++ b/systemd/confluence_psyched.service @@ -0,0 +1,19 @@ +[Unit] +Description = Confluence Server +After=syslog.target network.target + +[Service] +Type=forking +#Environment=CONFLUENCE_HOME=/opt/atlassian/homes/confluence +Environment=JAVA_HOME=/opt/jdk +PermissionsStartOnly=true +User=confluence +Group=atlassian +ExecStart=/opt/confluence/bin/startup.sh +ExecStop=/opt/confluence/bin/shutdown.sh +TimeoutStartSec=120 +TimeoutStopSec=600 +PrivateTmp=true + +[Install] +WantedBy = multi-user.target diff --git a/systemd/confluence_tripsit.service b/systemd/confluence_tripsit.service new file mode 100644 index 0000000..6ba2e93 --- /dev/null +++ b/systemd/confluence_tripsit.service @@ -0,0 +1,18 @@ +[Unit] +Description = TripSit Confluence Server +After=syslog.target network.target + +[Service] +Type=forking +Environment=JAVA_HOME=/opt/jdk2 +PermissionsStartOnly=true +User=confluence +Group=atlassian +ExecStart=/opt/confluence/bin/startup.sh +ExecStop=/opt/confluence/bin/shutdown.sh +TimeoutStartSec=120 +TimeoutStopSec=600 +PrivateTmp=true + +[Install] +WantedBy = multi-user.target diff --git a/systemd/cytube.service b/systemd/cytube.service new file mode 100644 index 0000000..cfb507d --- /dev/null +++ b/systemd/cytube.service @@ -0,0 +1,15 @@ +[Unit] +Description=CyTube +After=network.target mysqld.service + +[Service] +Type=simple +User=cytube +Group=cytube +WorkingDirectory=/opt/cytube/sync/ +Environment=NODE_ENV=production +ExecStart=/opt/cytube/.nvm/versions/node/v14.17.0/bin/node /opt/cytube/sync/index.js +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/systemd/jira_tripsit.service b/systemd/jira_tripsit.service new file mode 100644 index 0000000..efef295 --- /dev/null +++ b/systemd/jira_tripsit.service @@ -0,0 +1,19 @@ +[Unit] +Description = TripSit Jira Server +After=syslog.target network.target + +[Service] +Type=forking +Environment=JIRA_HOME=/opt/atlassian/homes/jira +Environment=JAVA_HOME=/opt/jdk +PermissionsStartOnly=true +User=jira +Group=atlassian +ExecStart=/opt/jira/bin/startup.sh +ExecStop=/opt/jira/bin/shutdown.sh +TimeoutStartSec=120 +TimeoutStopSec=600 +PrivateTmp=true + +[Install] +WantedBy = multi-user.target diff --git a/systemd/mailcow.service b/systemd/mailcow.service new file mode 100644 index 0000000..af2d974 --- /dev/null +++ b/systemd/mailcow.service @@ -0,0 +1,14 @@ +[Unit] +Description=Mailcow +Requires=docker.service +After=docker.service + +[Service] +Type=oneshot +RemainAfterExit=true +WorkingDirectory=/opt/mailcow-dockerized +ExecStart=/usr/local/bin/docker-compose up -d +ExecStop=/usr/local/bin/docker-compose down + +[Install] +WantedBy=multi-user.target diff --git a/systemd/matterbridge_libertacasa_irc.service b/systemd/matterbridge_libertacasa_irc.service new file mode 100644 index 0000000..96218c0 --- /dev/null +++ b/systemd/matterbridge_libertacasa_irc.service @@ -0,0 +1,14 @@ +[Unit] +After=network.target +Description=Matterbridge (LibertaCasa) + +[Service] +Type=simple +User=matterbridge +Group=matterbridge +WorkingDirectory=/opt/matterbridge +Restart=always +ExecStart=/opt/matterbridge/matterbridge -conf libertacasa/matterbridge-irc.toml + +[Install] +WantedBy=multi-user.target diff --git a/systemd/matterbridge_libertacasa_multiproto.service b/systemd/matterbridge_libertacasa_multiproto.service new file mode 100644 index 0000000..19493e3 --- /dev/null +++ b/systemd/matterbridge_libertacasa_multiproto.service @@ -0,0 +1,14 @@ +[Unit] +After=network.target +Description=Matterbridge (LibertaCasa) + +[Service] +Type=simple +User=matterbridge +Group=matterbridge +WorkingDirectory=/opt/matterbridge +Restart=always +ExecStart=/opt/matterbridge/matterbridge -conf libertacasa/matterbridge-general.toml + +[Install] +WantedBy=multi-user.target diff --git a/systemd/matterbridge_tripsit.service b/systemd/matterbridge_tripsit.service new file mode 100644 index 0000000..dd11248 --- /dev/null +++ b/systemd/matterbridge_tripsit.service @@ -0,0 +1,14 @@ +[Unit] +After=network.target +Description=Matterbridge (TripSit) + +[Service] +Type=simple +User=matterbridge +Group=matterbridge +WorkingDirectory=/opt/matterbridge +Restart=always +ExecStart=/opt/matterbridge/matterbridge -conf tripsit/matterbridge.toml + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3