Initial Systemd Service Run: 3/3

Signed-off-by: Georg <georg@lysergic.dev>
This commit is contained in:
Georg Pfuetzenreuter 2021-07-21 13:04:22 +02:00
parent b3cac70a7f
commit 570ed2aed2
9 changed files with 122 additions and 0 deletions

14
systemd/beauties.service Normal file
View File

@ -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

View File

@ -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

15
systemd/cytube.service Normal file
View File

@ -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

View File

@ -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

14
systemd/mailcow.service Normal file
View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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