This commit is contained in:
midoks
2022-06-18 23:43:45 +08:00
parent ca74fed904
commit 2ee0dc6144
2 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -5,8 +5,10 @@ After=network.target
[Service]
Type=forking
ExecStart={$SWAPON_BIN} {$SERVER_PATH}/swap/swapfile
ExecReload=/bin/kill -USR2 $MAINPID
ExecStart={$SERVER_PATH}/swap/init.d/swap start
ExecStop={$SERVER_PATH}/swap/init.d/swap stop
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target