# lxcrond builtins
built-in commands that don't require binaries or dependencies in the container.
## kill
Same as `/usr/bin/kill` but reads a file to get the pid.
Takes two args the signal to send and the absolute path of a file that should contain a pid and nothing else.
N.b The signal must be an integer (not a string), see `man 7 signal`, e.g for HUP use 1
Negative values are inverted because `kill -9` feels natural.
```
/etc/nginc/nginx.conf kill 1 /var/run/nginx.pid
```
## reboot
send sigterm (15) to pid 1, allowing containers to schedule their own reboots.
```
@midnight reboot
```
## truncate
Used to stop logs getting big, n.b. probably need to HUP the process that writes to the file.
```
@midnight truncate /var/log/nginx/error.log
@midnight truncate /var/log/nginx/access.log
@midnight kill 1 /var/run/nginx.pid
```
## copy
Monitors an input file and if it changes, copies the new version.
```
/mnt/reconf/nginx.conf copy /etc/nginx/nginx.conf
/etc/nginx/nginx.conf kill 1 /var/run/nginx.pid
```