# Putting executables in sbin in gems

**URL:** <https://www.ruby-forum.com/t/putting-executables-in-sbin-in-gems/105193>\
**Category:** Ruby\
**Created:** [May 27, 2007, 1:01am UTC](https://www.ruby-forum.com/t/putting-executables-in-sbin-in-gems/105193 "2007-05-27T01:01:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynxinator](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/848f3c/32.png) [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Post date:** [May 27, 2007, 1:01am UTC](https://www.ruby-forum.com/t/putting-executables-in-sbin-in-gems/105193/1 "2007-05-27T01:01:00Z")

</div>

Hi all,

My project[1] has a couple of daemons, which should go in sbin, but I  
can’t seem to find a way to get my gem specification to do so. Heck,  
I can’t even find any evidence that gems support sbin at all. Does  
anyone know if they do? If so, any hints you can give on how to get  
it working?

I’m using the rake task to create the gems, which creates a Gem  
specification and sets the bindir, but it doesn’t seem to support  
sbin at all.

Thanks.

1 - [http://puppet.reductivelabs.com/](http://puppet.reductivelabs.com/)

## – I don’t always know what I’m talking about, but I’m always pretty much convinced that I’m right. – musician Mojo Nixon

Luke K. | [http://reductivelabs.com](http://reductivelabs.com) | [http://madstop.com](http://madstop.com)

---

<div class="post-metadata">

**Author:** ![lynxinator](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/848f3c/32.png) [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Post date:** [May 27, 2007, 8:08am UTC](https://www.ruby-forum.com/t/putting-executables-in-sbin-in-gems/105193/2 "2007-05-27T08:08:27Z")

</div>

Surely all you want to do is put a fresh symlink in /sbin?

---

<div class="post-metadata">

**Author:** ![lynxinator](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/848f3c/32.png) [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Post date:** [May 27, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/putting-executables-in-sbin-in-gems/105193/3 "2007-05-27T12:17:51Z")

</div>

On May 26, 2007, at 16:00, Luke K. wrote:

> My project[1] has a couple of daemons, which should go in sbin, but  
> I can’t seem to find a way to get my gem specification to do so.  
> Heck, I can’t even find any evidence that gems support sbin at  
> all. Does anyone know if they do? If so, any hints you can give  
> on how to get it working?

I haven’t seen any code to put stuff in sbin, not entries in  
Gem::Specification.

---

<div class="post-metadata">

**Author:** ![lynxinator](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/848f3c/32.png) [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Post date:** [May 28, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/putting-executables-in-sbin-in-gems/105193/4 "2007-05-28T23:35:21Z")

</div>

On May 27, 2007, at 1:08 AM, James T. wrote:

> Surely all you want to do is put a fresh symlink in /sbin?

No, I want to install daemon executables into (usually) /usr/sbin.  
What do you mean, a fresh symlink?

## – What’s the good of having mastery over cosmic balance and knowing the secrets of fate if you can’t blow something up? – Terry Pratchett, “Reaper Man”

Luke K. | [http://reductivelabs.com](http://reductivelabs.com) | [http://madstop.com](http://madstop.com)

---

<div class="post-metadata">

**Author:** ![lynxinator](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/848f3c/32.png) [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Post date:** [May 28, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/putting-executables-in-sbin-in-gems/105193/5 "2007-05-28T23:37:22Z")

</div>

On May 27, 2007, at 5:17 AM, Eric H. wrote:

> I haven’t seen any code to put stuff in sbin, not entries in  
> Gem::Specification.

That’s what I feared, thanks.

## – He is indebted to his memory for his jests and to his imagination for his facts. --Richard Brinsley Sheridan

Luke K. | [http://reductivelabs.com](http://reductivelabs.com) | [http://madstop.com](http://madstop.com)
