Commit Graph

13 Commits

Author SHA1 Message Date
Sergey Kizunov
57fba60eda Make extensionless scripts runable in Windows
Previously, to make these run on Windows, I added the '.py'
extension. For example 'salt-master' => 'salt-master.py'

If this wasn't done, you would get an exception that looks like this
when spawning an addition process:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
    File "C:\salt\bin\lib\multiprocessing\forking.py",
    line 380, in main
        prepare(preparation_data)
          File "C:\salt\bin\lib\multiprocessing\forking.py",
          line 489, in prepare
              file, path_name, etc = imp.find_module(main_name, dirs)
              ImportError: No module named salt-master

Instead of adding the '.py' extension, I found another work-around that
seems to avoid the issue. The details are described in the file comments.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2015-05-15 20:04:55 -05:00
Onur Yalazı
88ec4ec97f Updated hashbangs with /usr/bin/env for virtual environment installs 2013-01-03 11:36:51 +02:00
Aaron Tygart
a05911d985 Add freeze_support on salt-minion script 2012-09-10 14:13:02 -05:00
Benoit Bryon
ee0072d3e8 Updated setup(): use setuptools' console_scripts if available, else fallback to distutils' scripts. Refs #1028. 2012-06-05 12:00:20 +02:00
Corey Quinn
dfd82ad0bd Debian/Ubuntu package for upstream acceptance
Applying latest changes for packaging

Fixed typos in man pages

Latest round of changes

More packaging fixups

Fixed salt-common typo

Fixed wildcarding in install files

Removed extra man pages

Removed trailing slash

Fixed links

Moved binaries to proper packages

Fixed man pages

Pathing

Perms tweak

Missing files

Fixed spacing

Fixed another lintian error

build the msgpack stuff

Updating rules and install files

Fixed shebang

Control updates

Fixed copyright file

Fixed lintian

Fixed overrides

cmd.retcode no longer uses subprocess.call since it is broken

fix issue with source_hash and trailing whitespace

Bye-bye pickle, hello msgpack

Add docs for new source powers

Add support for source_hash to be a source hash string

add pure python template type

add return clarifying that no states were found if no states are found

change some strings to use format

add code to cache jobs on the minion if option is set

serialize cache data

was caching the wrong line data

Add cache_jobs to the minion config template

add docs for new config param cache_jobs

make the minions return to the master in addition to returning to
returners

Add capability to designate multiple returns

only run the apache module if apachectl is installed

only load solr module if solr is installed

Debug statement used the wrong variable.

Only load nginx on machines that have nginx installed

Make it more like the apache module
2012-01-18 12:15:01 -08:00
Corey Quinn
3e79767c25 Merge branch 'develop' of github.com:KB1JWQ/salt into KB1JWQ 2011-12-30 11:58:03 -08:00
Jeff Schroeder
bb0629e690 Handle Ctrl-c on the syndic or regular minion and log it
- Log a message when the syndic or minion is exiting
    - Cleanly exit and use the same message on all daemons
    - Add places to handle a sigterm or sighup by KeyboardInterrupt
2011-12-27 17:00:52 -08:00
Corey Quinn
e5f5bb3c2b Set the scripts to be executable 2011-12-27 12:02:09 -08:00
Markus Gattol
38e5d2b2cb file permissions: from 775 to 755
Signed-off-by: Markus Gattol <markus.gattol@sunoano.org>
2011-11-14 15:49:06 +00:00
Thomas S Hatch
6367f05cb7 Fix docstring for salt-minion 2011-08-14 22:36:43 -06:00
Thomas S Hatch
f069cc5fd1 Salt minion dies with a ctrl-c now 2011-07-09 15:37:35 -06:00
Thomas S Hatch
1d91b4df8c Add the salt-minon script 2011-02-27 13:55:21 -07:00
Thomas S Hatch
eccb3a8168 Add salt script placeholders 2011-02-20 13:30:58 -07:00