-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path22_stop_API.bash
More file actions
executable file
·33 lines (29 loc) · 867 Bytes
/
22_stop_API.bash
File metadata and controls
executable file
·33 lines (29 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
#h-------------------------------------------------------------------------------
#h
#h Name: stp_API.bash
#h Type: Linux shell script
#h Purpose: stops API
#h Project:
#h Usage: ./stp_API.bash
#h Result:
#h Examples:
#h Outline:
#h Resources:
#h Platforms: Linux
#h Authors: peb piet66
#h Version: V1.0.0 2023-02-19/peb
#v History: V1.0.0 2022-11-20/peb first version
#h Copyright: (C) piet66 2022
#h License: MIT
#h
#h-------------------------------------------------------------------------------
MODULE='stp_API.bash';
VERSION='V1.0.0'
WRITTEN='2023-02-19/peb'
. `dirname $(readlink -f $0)`/00_constants >/dev/null
echo stopping packet $PACKET_NAME...
echo ''
sudo systemctl stop $PACKET_NAME
systemctl status $PACKET_NAME | cat
systemctl show -pUser $PACKET_NAME