LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-22-2020, 05:07 PM   #1
CaptainMart
LQ Newbie
 
Registered: Feb 2015
Location: Cambridgshire, UK
Distribution: Gentoo
Posts: 13

Rep: Reputation: Disabled
Issue with init.d script failing with _: not found


I'm running a SliTaz 4.0 box which was running Samba; one of the PCs on the network is now running Windows 10 meaning I require SMB3 support. I've installed Samba 4.6.14 but when I try to start it from the init.d/samba script, it throws several errors all of the form
Quote:
_: not found
Looking at the original samba init.d script, it didn't use the form
Code:
DESC="$(_ '%s server' Samba)"
but instead used
Code:
DESC="Samba server"
So it is clear why the original script ran OK, but what's causing the updated one to fail; has there been a change to the shell that might cause this?
 
Old 10-25-2020, 11:44 PM   #2
Fjor
LQ Newbie
 
Registered: Oct 2004
Location: Jalisco, Mexico
Distribution: Slackware
Posts: 24

Rep: Reputation: 5
The construct $(command options...) executes command and substitutes the $() with the text printed by it. The error means that the shell cannot find some command '_' (underline). This '_' command can also be a local function defined before the instruction or in an auxiliary script like /etc/init.d/rc.functions. Does other init scripts have this construct? Could you post the full samba init script?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
What is the exact diff between init 1,init S and init s challavijay Linux - Newbie 1 08-05-2010 06:51 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel. john_schimandle Linux - Newbie 4 10-09-2008 02:40 AM
Kernel panic - not syncing: No init found. Try passing init= option to kernel ranjithmrk Linux - Newbie 4 08-22-2008 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration