Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bcc08707b9 | |||
| 5f078f0027 |
@@ -0,0 +1 @@
|
||||
/etc/systemd/system/smarttms.service
|
||||
19
archiso/airootfs/etc/systemd/system/smarttms.service
Executable file
19
archiso/airootfs/etc/systemd/system/smarttms.service
Executable 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
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
/home/smart/.config/systemd/user/smarttms.service
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user