functions.sh: use service for restart for portability