Dịch vụ xampp.service
này không tự khởi động, mặc dù đã được bật. Có vẻ như systemd đang giết chết nó sau khi bắt đầu thành công (?).
Nó nằm dưới / etc / systemd / system / và chứa các mục sau
[Unit]
Description=XAMPP
[Service]
ExecStart=/opt/lampp/lampp start
[Install]
WantedBy=multi-user.target
systemctl --failed
trả về:
UNIT LOAD ACTIVE SUB DESCRIPTION
● xampp.service loaded failed failed XAMPP
systemctl status xampp.service
trả về:
● xampp.service - XAMPP
Loaded: loaded (/etc/systemd/system/xampp.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Mo 2016-11-21 02:04:10 CET; 4min 56s ago
Process: 459 ExecStart=/opt/lampp/lampp start (code=exited, status=0/SUCCESS)
Main PID: 459 (code=exited, status=0/SUCCESS)
Nov 21 02:02:40 tangboshi lampp[459]: XAMPP: Starting Apache...ok.
Nov 21 02:02:40 tangboshi lampp[459]: XAMPP: Starting MySQL...ok.
Nov 21 02:02:40 tangboshi proftpd[600]: tangboshi - ProFTPD 1.3.4c (maint) (built Fri Aug 26 2016 11:19:40 CEST) standalone mode STARTUP
Nov 21 02:02:40 tangboshi lampp[459]: XAMPP: Starting ProFTPD...ok.
Nov 21 02:02:40 tangboshi proftpd[600]: tangboshi - ProFTPD killed (signal 15)
Nov 21 02:04:10 tangboshi systemd[1]: xampp.service: State 'stop-sigterm' timed out. Killing.
Nov 21 02:04:10 tangboshi systemd[1]: xampp.service: Killing process 576 (mysqld_safe) with signal SIGKILL.
Nov 21 02:04:10 tangboshi systemd[1]: xampp.service: Killing process 737 (mysqld) with signal SIGKILL.
Nov 21 02:04:10 tangboshi systemd[1]: xampp.service: Unit entered failed state.
Nov 21 02:04:10 tangboshi systemd[1]: xampp.service: Failed with result 'timeout'.