Skip to content

Commit

Permalink
update systemd files
Browse files Browse the repository at this point in the history
  • Loading branch information
weshayutin committed Mar 13, 2024
1 parent 6b9bea1 commit 74027a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions cloud-init/todolist-data
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ users:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIXu6mcNuozbbovc7PLAQAgJFC3VcV4B9Z/mc089Ofv [email protected]

packages:
- firewalld
- mariadb-server
- net-tools
- python-requests
Expand All @@ -32,9 +31,10 @@ runcmd:
- pushd /home/test/
- wget https://github.com/weshayutin/todolist-mariadb-go/releases/download/testing1/todolist-linux-amd64.zip
- unzip todolist-linux-amd64.zip
- cp systemd/todolist-mariadb.service /etc/systemd/user
- cp systemd/todolist-mariadb.service /etc/systemd/system
- popd
- sudo systemctl --user daemon-reload
- sudo systemctl --user start todolist-mariadb.service
- sudo systemctl --user enable todolist-mariadb.service
- systemctl --user daemon-reload
- systemctl start todolist-mariadb.service
- systemctl enable todolist-mariadb.service
- systemctl status todolist-mariadb.service
- systemctl disable cloud-init
6 changes: 3 additions & 3 deletions systemd/todolist-mariadb.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# READ! This is a user daemon, start with:
# systemctl --user start todolist-mariadb.service
# systemctl --user status todolist-mariadb.service
# systemctl start todolist-mariadb.service
# systemctl status todolist-mariadb.service
[Unit]
Description=todolist-mariadb service
After=mariadb.service
Expand All @@ -16,4 +16,4 @@ User=test
Group=test

[Install]
WantedBy=basic.target
WantedBy=multiuser.target

0 comments on commit 74027a3

Please sign in to comment.