-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDogDetect_README.txt
51 lines (28 loc) · 1.3 KB
/
DogDetect_README.txt
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Creating Required RAM Disk
==========================
The goal is to have a 100MB directory in RAM for temporarily storage.
1) create the tmp dir
> sudo mkdir /var/ramdisk
2) edit the fstab file by
> sudo vi /etc/fstab
3) add the following line, then save the file:
tmpfs /var/ramdisk tmpfs nodev,nosuid,size=100M 0 0
4) mount the new drive
> sudo mount -a
5) Check by issuing:
> df
Should return a number of lines including:
Filesystem 1K-blocks Used Available Use% Mounted on
: : : : : :
tmpfs 102400 0 102400 0% /var/ramdisk
Enabling the initialization at boot - needed for cases where the watchdog resets the system
===========================================================================================
Copy DogDetect.service into /etc/systemd/system as root, for example:
> sudo cp DogDetect.service /etc/systemd/system/DogDetect.service
Once this has been copied, you can attempt to start the service using the following command:
> sudo systemctl start DogDetect.service
Stop it using following command:
sudo systemctl stop DogDetect.service
To have it start automatically on reboot by using this command:
sudo systemctl enable DogDetect.service
The systemctl command can also be used to restart the service or disable it