Changeset 95557


Ignore:
Timestamp:
Jul 16, 2012, 6:25:02 PM (7 years ago)
Author:
krischik@…
Message:

Improved (Re)Start scripts.

Location:
trunk/dports/news/leafnode
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/news/leafnode/Portfile

    r92837 r95557  
    66name                            leafnode
    77version                         1.11.8
    8 revision                        1
     8revision                        2
    99categories                      news
    1010platforms                       darwin
    11 maintainers                     macports.org:krischik
     11maintainers                     openmaintainer krischik
    1212description                     Leafnode is a store & forward NNTP proxy
    1313long_description        Leafnode is a software package that implements a store  \
  • trunk/dports/news/leafnode/files/Restart_Fetchnews.command.in

    r61574 r95557  
    1616    fi;
    1717
     18    launchctl stop                             org.macports.fetchnews
    1819    launchctl unload -w /Library/LaunchDaemons/org.macports.fetchnews.plist
    1920    launchctl load   -w /Library/LaunchDaemons/org.macports.fetchnews.plist
     21    launchctl start                            org.macports.fetchnews
    2022else
    2123    sudo ${0};
  • trunk/dports/news/leafnode/files/Restart_Leafnode.command.in

    r62755 r95557  
    1212    if test ! -L /Library/LaunchDaemons/org.macports.leafnode.plist; then
    1313        ln -s                                                                               \
    14             @PREFIX@/etc/LaunchDaemons/org.macports.leafnode/org.macports.leafnode.plist   \
     14            @PREFIX@/etc/LaunchDaemons/org.macports.leafnode/org.macports.leafnode.plist    \
    1515            /Library/LaunchDaemons/org.macports.leafnode.plist                              ;
    1616    fi;
    17    
     17
     18    launchctl stop                             org.macports.leafnode
    1819    launchctl unload -w /Library/LaunchDaemons/org.macports.leafnode.plist
    1920    launchctl load   -w /Library/LaunchDaemons/org.macports.leafnode.plist
     21    launchctl start                            org.macports.leafnode
    2022else
    2123    sudo ${0};
  • trunk/dports/news/leafnode/files/Restart_Texpire.command.in

    r61574 r95557  
    1616    fi;
    1717
     18    launchctl stop                             org.macports.texpire
    1819    launchctl unload -w /Library/LaunchDaemons/org.macports.texpire.plist
    1920    launchctl load   -w /Library/LaunchDaemons/org.macports.texpire.plist
     21    launchctl start                            org.macports.texpire
    2022else
    2123    sudo ${0};
  • trunk/dports/news/leafnode/files/config

    r40251 r95557  
    1616## As leafnode forgets the article numbers of its upstream server when
    1717## a group is marked as uninteresting, and later marked interesting
    18 ## again, you may end up downloading ALL articles from the upstream 
     18## again, you may end up downloading ALL articles from the upstream
    1919## in that group. So uncomment and adjust this line:
    2020# initialfetch = 100
     
    8282# password = secret
    8383
    84 ## This is a news server which does not understand the 
     84## This is a news server which does not understand the
    8585## "LIST NEWSGROUP news.group" command. For this reason, we don't try to
    8686## download newsgroups descriptions when getting new newsgroups. This is
     
    152152# very interesting, hold articles longer:
    153153# groupexpire any.local.newsgroup = 100
    154 # 
     154#
    155155# archive this group (fetchnews uses the global expire to figure the
    156156# maxage, but texpire will skip it):
     
    261261## If your newsreader does not supply a Message-ID for your postings
    262262## Leafnode will supply one, using the hostname of the machine it is
    263 ## running on.  If this hostname is not suitable, this parameter can be 
     263## running on.  If this hostname is not suitable, this parameter can be
    264264## used to override it.  Do not use a fantasy name, it may interfere with
    265265## the propagation of your messages.  Most modern newsreaders do provide
  • trunk/dports/news/leafnode/files/filters

    r40251 r95557  
    11# Leafnode filter configuration file (see the applyfilter(8) manual page
    22# and /usr/share/doc/packages/leafnode/filters.example)
    3 # 
     3#
    44# this file contains the set of filtering rules that are applied
    55# to the newsspool. Each rule must be on a separate line. Empty lines
  • trunk/dports/news/leafnode/files/org.macports.fetchnews.plist.in

    r46159 r95557  
    33<plist version="1.0">
    44<dict>
    5         <key>KeepAlive</key>
    6         <false/>
    7         <key>Label</key>
    8         <string>org.macports.fetchnews</string>
    9         <key>Program</key>
    10         <string>/usr/bin/sudo</string>
    11         <key>ProgramArguments</key>
    12         <array>
    13                 <string>/usr/bin/sudo</string>
    14                 <string>-u</string>
    15                 <string>_news</string>
    16                 <string>@PREFIX@/sbin/fetchnews</string>
    17         </array>
    18         <key>StartInterval</key>
    19         <integer>1800</integer>
    20         <key>WorkingDirectory</key>
    21         <string>@PREFIX@/var/spool/news</string>
     5        <key>KeepAlive</key>
     6        <false/>
     7        <key>Label</key>
     8        <string>org.macports.fetchnews</string>
     9        <key>Program</key>
     10        <string>/usr/bin/sudo</string>
     11        <key>ProgramArguments</key>
     12        <array>
     13                <string>/usr/bin/sudo</string>
     14                <string>-u</string>
     15                <string>_news</string>
     16                <string>@PREFIX@/sbin/fetchnews</string>
     17        </array>
     18        <key>StartInterval</key>
     19        <integer>1800</integer>
     20        <key>WorkingDirectory</key>
     21        <string>@PREFIX@/var/spool/news</string>
    2222</dict>
    2323</plist>
  • trunk/dports/news/leafnode/files/org.macports.leafnode.plist.in

    r46159 r95557  
    22<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    33<plist version="1.0">
    4         <dict>
    5                 <key>OnDemand</key>                     <true/>
    6                 <key>Label</key>                        <string>org.macports.leafnode</string>
    7                 <key>WorkingDirectory</key>     <string>@PREFIX@/var/spool/news</string>
    8                 <key>Program</key>                      <string>/usr/bin/sudo</string>
    9                 <key>ProgramArguments</key>
    10                 <array>
    11                         <string>/usr/bin/sudo</string>
    12                         <string>-u</string>
    13                         <string>_news</string>
    14                         <string>@PREFIX@/sbin/leafnode</string>
    15                 </array>
    16                 <key>Sockets</key>
    17                 <dict>
    18                         <key>Listeners</key>
    19                         <dict>
    20                                 <key>SockServiceName</key>      <string>nntp</string>
    21                         </dict>
    22                 </dict>
    23                 <key>inetdCompatibility</key>
    24                 <dict>
    25                         <key>Wait</key> <false/>
    26                 </dict>
    27         </dict>
     4        <dict>
     5                <key>OnDemand</key>                     <true/>
     6                <key>Label</key>                        <string>org.macports.leafnode</string>
     7                <key>WorkingDirectory</key>             <string>@PREFIX@/var/spool/news</string>
     8                <key>Program</key>                      <string>/usr/bin/sudo</string>
     9                <key>ProgramArguments</key>
     10                <array>
     11                        <string>/usr/bin/sudo</string>
     12                        <string>-u</string>
     13                        <string>_news</string>
     14                        <string>@PREFIX@/sbin/leafnode</string>
     15                </array>
     16                <key>Sockets</key>
     17                <dict>
     18                        <key>Listeners</key>
     19                        <dict>
     20                                <key>SockServiceName</key>      <string>nntp</string>
     21                        </dict>
     22                </dict>
     23                <key>inetdCompatibility</key>
     24                <dict>
     25                        <key>Wait</key> <false/>
     26                </dict>
     27        </dict>
    2828</plist>
    2929
    30 <!--vim: set nowrap tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab :-->
    31 <!--vim: set textwidth=0 filetype=xml foldmethod=marker nospell :-->
     30<!-- vim: set nowrap tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab :-->
     31<!-- vim: set textwidth=0 filetype=xml foldmethod=marker nospell :-->
  • trunk/dports/news/leafnode/files/org.macports.texpire.plist.in

    r46159 r95557  
    22<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    33<plist version="1.0">
    4         <dict>
    5                 <key>KeepAlive</key>            <false/>
    6                 <key>Label</key>                        <string>org.macports.texpire</string>
    7                 <key>StartInterval</key>        <integer>86400</integer>
    8                 <key>WorkingDirectory</key>     <string>@PREFIX@/var/spool/news</string>
    9                 <key>Program</key>                      <string>/usr/bin/sudo</string>
    10                 <key>ProgramArguments</key>
    11                 <array>
    12                         <string>/usr/bin/sudo</string>
    13                         <string>-u</string>
    14                         <string>_news</string>
    15                         <string>@PREFIX@/sbin/texpire</string>
    16                 </array>
    17         </dict>
     4        <dict>
     5                <key>KeepAlive</key>            <false/>
     6                <key>Label</key>                <string>org.macports.texpire</string>
     7                <key>StartInterval</key>        <integer>86400</integer>
     8                <key>WorkingDirectory</key>     <string>@PREFIX@/var/spool/news</string>
     9                <key>Program</key>              <string>/usr/bin/sudo</string>
     10                <key>ProgramArguments</key>
     11                <array>
     12                        <string>/usr/bin/sudo</string>
     13                        <string>-u</string>
     14                        <string>_news</string>
     15                        <string>@PREFIX@/sbin/texpire</string>
     16                </array>
     17        </dict>
    1818</plist>
    1919
    20 <!--vim: set nowrap tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab :-->
    21 <!--vim: set textwidth=0 filetype=xml foldmethod=marker nospell :-->
     20<!-- vim: set nowrap tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab :-->
     21<!-- vim: set textwidth=0 filetype=xml foldmethod=marker nospell :-->
Note: See TracChangeset for help on using the changeset viewer.