Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151109252
D47328.id155202.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
685 B
Referenced Files
None
Subscribers
None
D47328.id155202.diff
View Options
diff --git a/usr.sbin/service/service.8 b/usr.sbin/service/service.8
--- a/usr.sbin/service/service.8
+++ b/usr.sbin/service/service.8
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd April 19, 2025
+.Dd May 9, 2025
.Dt SERVICE 8
.Os
.Sh NAME
@@ -48,7 +48,7 @@
.Op Fl v
.Op Fl E Ar var=value
.Ar script
-.Ar command
+.Op Ar command
.Sh DESCRIPTION
The
.Nm
diff --git a/usr.sbin/service/service.sh b/usr.sbin/service/service.sh
--- a/usr.sbin/service/service.sh
+++ b/usr.sbin/service/service.sh
@@ -162,7 +162,7 @@
exit 0
fi
-if [ $# -gt 1 ]; then
+if [ $# -gt 0 ]; then
script=$1
shift
else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 3:26 AM (13 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31008558
Default Alt Text
D47328.id155202.diff (685 B)
Attached To
Mode
D47328: service(8): Allow for passing no arguments to the service script
Attached
Detach File
Event Timeline
Log In to Comment