Compare commits

2 Commits

Author SHA1 Message Date
zj
bcc08707b9 fix ffmpeg pure-ftpd.config 2025-12-02 01:36:23 +08:00
zj
5f078f0027 revert 1c26e23603
revert update smarttms.service pure--ftpd.config dcp
2025-12-02 01:28:22 +08:00
4 changed files with 20 additions and 23 deletions

View File

@@ -0,0 +1 @@
/etc/systemd/system/smarttms.service

View File

@@ -0,0 +1,19 @@
[Unit]
Description=SmartTMS Service
After=mysqld.service
Wants=mysqld.service
[Service]
Type=forking
User=root
ExecStart=/usr/bin/smarttms start
ExecStop=/usr/bin/smarttms stop
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=5
TimeoutStartSec=300
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target

View File

@@ -1 +0,0 @@
/home/smart/.config/systemd/user/smarttms.service

View File

@@ -1,22 +0,0 @@
[Unit]
Description=SmartTMS Service (User)
After=mysqld.service graphical.target
Wants=mysqld.service
[Service]
Type=forking
ExecStart=sudo /usr/bin/smarttms start
ExecStop=sudo /usr/bin/smarttms stop
ExecReload=sudo /usr/bin/smarttms restart
Restart=on-failure
RestartSec=5
TimeoutStartSec=300
TimeoutStopSec=300
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/smart/.Xauthority"
Environment="XDG_CURRENT_DESKTOP=XFCE"
[Install]
WantedBy=default.target