28 lines
790 B
Desktop File
28 lines
790 B
Desktop File
|
|
# Copyright (c) [2026] [S.A. SNOWARE-SCU]
|
||
|
|
# [MineSentinel] is licensed under Mulan PubL v2.
|
||
|
|
# You can use this software according to the terms and conditions of the Mulan PubL v2.
|
||
|
|
# You may obtain a copy of Mulan PubL v2 at:
|
||
|
|
# http://license.coscl.org.cn/MulanPubL-2.0
|
||
|
|
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND.
|
||
|
|
|
||
|
|
[Unit]
|
||
|
|
Description=MineSentinel Minecraft Server Monitor
|
||
|
|
After=network.target
|
||
|
|
Before=minecraft.service
|
||
|
|
Wants=minecraft.service
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
WorkingDirectory=/opt/minecraft/sentinel
|
||
|
|
ExecStart=/usr/bin/ruby /opt/minecraft/sentinel/main.rb
|
||
|
|
Restart=always
|
||
|
|
RestartSec=10
|
||
|
|
StandardOutput=journal
|
||
|
|
StandardError=journal
|
||
|
|
#Environment=LOG_LEVEL=debug
|
||
|
|
#Environment=RUBY_DEBUG=1
|
||
|
|
WatchdogSec=210
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|