blob: 1fc2bfe3bd311ec84e109d40b82377e988ccaf1c (
plain)
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
|
# //services
## install service user
make create-service-user service-user
$EDITOR /opt/services/services.txt
## install and run test-server.py as systemd service
### install dependencies
pacman -S python2-pyasn1 twisted
### install systemd service and configuration
cp /krebs/services/etc/systemd/system/krebs-services-test-server.service \
/etc/systemd/system/
cp /krebs/services/etc/conf.d/krebs-services-test-server \
/etc/conf.d/
### create services user and populate it's home
useradd -m -r -l -f -1 -d /opt/services -k /var/empty services
sudo -u services ssh-keygen -t rsa -P '' -f /opt/services/test.key
$EDITOR /opt/services/services.txt
### run now and every reboot
systemctl start krebs-services-test-server
systemctl enable krebs-services-test-server
|