Probably the best option to learn is this.
The base script is like this:
#!/sbin/openrc-run
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="service"
description=""
command="/path/to/dir/"
command_args="${service_args}"
#command_user="user:user"
depend() {
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…