-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
palworld-admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Palworld Admin Service | ||
After=network.target | ||
|
||
[Service] | ||
ExecStart=/root/palworld-admin | ||
WorkingDirectory=/root | ||
User=root | ||
Group=root | ||
Restart=always | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Make the palworld-admin executable | ||
chmod u+x /root/palworld-admin | ||
|
||
# Create the systemd service file | ||
echo "[Unit] | ||
Description=Palworld Admin Service | ||
After=network.target | ||
[Service] | ||
ExecStart=/root/palworld-admin | ||
WorkingDirectory=/root | ||
User=root | ||
Group=root | ||
Restart=always | ||
[Install] | ||
WantedBy=multi-user.target" | sudo tee /etc/systemd/system/palworld-admin.service | ||
|
||
# Start and enable the service | ||
sudo systemctl start palworld-admin | ||
sudo systemctl enable palworld-admin | ||
|
||
# Check the service status | ||
sudo systemctl status palworld-admin |